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