Beispiel #1
0
        // 更换AI状态
        public override void ChangeAIState(IAIState NewAIState)
        {
            ChangeAIState(NewAIState);

            // Enemy的AI要设置攻击目标
            NewAIState.SetAttackPosition(m_AttackPosition);
        }
Beispiel #2
0
 // 更换AI状态
 public virtual void ChangeAIState(IAIState NewAIState)
 {
     m_AIState = NewAIState;
     m_AIState.SetCharacterAI(this);
 }