Exemple #1
0
 private void SetCurrentState(AbstractState newState)
 {
     _currentState = newState;
     SetUpdates(_currentState);
 }
Exemple #2
0
 public void Run(AbstractState firstState)
 {
     SetCurrentState(firstState);
     IsRunning = true;
     StartCoroutine(StateMachineRoutine());
 }