Files
HelixJump/Assets/Scripts/LifeTimeScope/GameSession.cs
2025-12-15 17:49:08 -08:00

27 lines
602 B
C#

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; }
}