//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- private void STATE_FIVE(StateFlow stateFlow) { switch (stateFlow) { case StateFlow.ENTER: break; case StateFlow.UPDATE: break; case StateFlow.EXIT: break; } }
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- private void STATE_ZERO(StateFlow stateFlow) { switch (stateFlow) { case StateFlow.ENTER: Debug.Log($"<color=yellow>{this.name}</color> - 상태 : {currentState}, 상태단계 : {stateFlow}"); break; case StateFlow.UPDATE: break; case StateFlow.EXIT: break; } }
public AppController() { try { Model = AppModel.Load(AppModel.CONFIG_NAME); } catch (Exception e) { MonoLog.Log(MonoLogChannel.AppController, e); Model = new AppModel(); } Model.AddObserver(this); _stateMachine = new StateMachine(this); _stateFlow = new StateFlow(this, _stateMachine); _stateFlow.Add(new StateFlow.NextStatePair(typeof(AppInitializeState), typeof(AppReadyState))); LoadConfigs(); }