コード例 #1
0
 private void UpdateSounds()
 {
     HumanAIGroup.State state = this.m_State;
     if (state == HumanAIGroup.State.Calm)
     {
         this.UpdateCalmSound();
     }
 }
コード例 #2
0
 protected virtual void OnExitState()
 {
     HumanAIGroup.State state = this.m_State;
     if (state == HumanAIGroup.State.Calm)
     {
         this.OnExitCalmState();
     }
 }
コード例 #3
0
 protected void SetState(HumanAIGroup.State state)
 {
     if (this.m_State == state)
     {
         return;
     }
     this.OnExitState();
     this.m_State = state;
     this.OnEnterState();
 }
コード例 #4
0
ファイル: HumanAIWave.cs プロジェクト: looki666/Green-Hell
 protected override void OnEnterState()
 {
     HumanAIGroup.State state = this.m_State;
     if (state != HumanAIGroup.State.StartWave)
     {
         base.OnEnterState();
     }
     else
     {
         this.OnEnterStartWaveState();
     }
 }
コード例 #5
0
ファイル: HumanAIWave.cs プロジェクト: looki666/Green-Hell
 protected override void UpdateState()
 {
     HumanAIGroup.State state = this.m_State;
     if (state != HumanAIGroup.State.StartWave)
     {
         if (state != HumanAIGroup.State.Attack)
         {
             base.UpdateState();
         }
         else
         {
             this.UpdateAttackState();
         }
     }
     else
     {
         this.UpdateStartWaveState();
     }
 }