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