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