Added MainMenu, Bootstrap and Factory scenes
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public enum GamePhase { Menu, Loading, Playing, Results }
|
||||
|
||||
public sealed class GameFlowController : MonoBehaviour
|
||||
{
|
||||
public GamePhase Phase { get; private set; } = GamePhase.Menu;
|
||||
public event Action<GamePhase> PhaseChanged;
|
||||
public void SetPhase(GamePhase phase) { if (Phase == phase) return; Phase = phase; PhaseChanged?.Invoke(Phase); }
|
||||
}
|
||||
Reference in New Issue
Block a user