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