Пример #1
0
 public void ChangeState(BehaviourState nextState)
 {
     _currentState.StopBehaviour();
     _currentState = nextState;
     _currentState.StartBehaviour();
 }