コード例 #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();
 }