Ejemplo n.º 1
0
 public void ChangeState(BehaviourState nextState)
 {
     _currentState.StopBehaviour();
     _currentState = nextState;
     _currentState.StartBehaviour();
 }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     _currentState = _patrolState;
     _currentState.StartBehaviour();
 }