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

17 lines
437 B
C#
Raw Normal View History

2025-08-12 11:46:30 +00:00
using System.Threading.Tasks;
2025-08-17 12:49:38 +00:00
using UnityEditor;
2025-08-12 11:46:30 +00:00
using UnityEngine;
namespace DDD
{
[CreateAssetMenu(fileName = "GameStateSo", menuName = "GameState/GameStateSo")]
2025-08-17 12:49:38 +00:00
public class GameStateSo : ScriptableSingleton<GameStateSo>
2025-08-12 11:46:30 +00:00
{
2025-08-17 12:49:38 +00:00
public GameLevelStateSo GameLevelStateSo { get; private set; }
2025-08-12 11:46:30 +00:00
2025-08-17 12:49:38 +00:00
private void OnEnable()
2025-08-12 11:46:30 +00:00
{
2025-08-17 12:49:38 +00:00
GameLevelStateSo = CreateInstance<GameLevelStateSo>();
2025-08-12 11:46:30 +00:00
}
}
}