26 lines
616 B
C#
26 lines
616 B
C#
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;
|
|
}
|
|
}
|
|
}
|