files arranged using assembly defn
This commit is contained in:
25
Assets/DarkMatter/Code/Core/Data/GameSessionSO.cs
Normal file
25
Assets/DarkMatter/Code/Core/Data/GameSessionSO.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using Darkmatter.Core;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Darkmatter.Core
|
||||
{
|
||||
|
||||
[CreateAssetMenu(fileName = "GameSessionSO", menuName = "Scriptable Objects/GameSessionSO")]
|
||||
public class GameSessionSO : ScriptableObject, IGameSession
|
||||
{
|
||||
public bool showStartScreen { get; set; } = false;
|
||||
public bool hasGameStarted { get; set; } = false;
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
showStartScreen = true;
|
||||
hasGameStarted = false;
|
||||
}
|
||||
|
||||
private void OnDisable()
|
||||
{
|
||||
showStartScreen = false;
|
||||
hasGameStarted = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user