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