using System; using GadGame.Manager; using GadGame.SO; using GadGame.State; using GadGame.State.MainFlowState; using Sirenix.OdinInspector; namespace GadGame { public class MainFlow : SingletonStateRunner { public SceneFlowConfig SceneFlowConfig; public event Action OnReadyCountDown; public event Action OnReady; protected override void Awake() { base.Awake(); DontDestroyOnLoad(gameObject); } private void Start() { SetState(); } public void ReadyCountDown(float duration) { OnReadyCountDown?.Invoke(duration); } public void Ready(bool ready) { OnReady?.Invoke(ready); } } }