Game UI ready
This commit is contained in:
26
Assets/Scripts/LifeTimeScope/GameSession.cs
Normal file
26
Assets/Scripts/LifeTimeScope/GameSession.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using UnityEngine;
|
||||
|
||||
[CreateAssetMenu(fileName ="GameSession", menuName ="Scriptable Objects/GameSession") ]
|
||||
public class GameSession : 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;
|
||||
}
|
||||
}
|
||||
|
||||
public interface IGameSession
|
||||
{
|
||||
bool showStartScreen { get; set; }
|
||||
bool hasGameStarted { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user