private void Update() { IQuestState nextState = _currentState.Execute(this); if (nextState != _currentState) { _currentState.Exit(this); _currentState = nextState; _currentState.Enter(this); } }
private void Awake() { _currentState = QuestAvailableState; }