ProjectDDD/Assets/_DDD/_Scripts/GameState/GameState.cs

17 lines
391 B
C#
Raw Normal View History

using UnityEngine;
using UnityEngine.AddressableAssets;
namespace DDD
{
2025-08-19 04:51:42 +00:00
public class GameState : ScriptSingleton<GameState>
{
[SerializeField] private AssetReference _gameLevelState;
public GameLevelState LevelState { get; private set; }
2025-08-19 03:12:10 +00:00
private void OnEnable()
{
2025-08-19 03:12:10 +00:00
LevelState = CreateInstance<GameLevelState>();
}
}
}