Esempio n. 1
0
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


    private void STATE_FIVE(StateFlow stateFlow)
    {
        switch (stateFlow)
        {
        case StateFlow.ENTER:
            break;

        case StateFlow.UPDATE:
            break;

        case StateFlow.EXIT:
            break;
        }
    }
Esempio n. 2
0
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


    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;
        }
    }
Esempio n. 3
0
        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();
        }