Beispiel #1
0
        private void Update()
        {
            IQuestState nextState = _currentState.Execute(this);

            if (nextState != _currentState)
            {
                _currentState.Exit(this);
                _currentState = nextState;
                _currentState.Enter(this);
            }
        }
Beispiel #2
0
 private void Awake()
 {
     _currentState = QuestAvailableState;
 }