示例#1
0
 public void ChangeState(EnemyState newState)
 {
     this.currentState.OnExit();
     this.currentState = newState;
     this.currentState.OnEnter();
 }
示例#2
0
 public void Start(EnemyState initialState)
 {
     this.currentState = initialState;
     this.currentState.OnEnter();
 }