Ejemplo n.º 1
0
 private void SetCurrentState(AbstractState newState)
 {
     _currentState = newState;
     SetUpdates(_currentState);
 }
Ejemplo n.º 2
0
 public void Run(AbstractState firstState)
 {
     SetCurrentState(firstState);
     IsRunning = true;
     StartCoroutine(StateMachineRoutine());
 }