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