示例#1
0
 protected void InitAI()
 {
     //TODO;
     m_ActorPathFinding = new AIPathFinding(this);
     m_ActorAI          = new ActorFsmAI(this, AIModeType.Hand, 10f, 10f, 10f, 0.2f);
     m_ActorAI.Start();
 }
示例#2
0
        protected virtual void InitAi()
        {
            m_ActorPathFinding = new AIPathFinding(this);
            float atkDist           = m_ActorData.AiAtkDist;
            float followDist        = m_ActorData.AiFollowDist;
            float waringDist        = m_ActorData.AiWaringDist;
            float findEnemyInterval = m_ActorData.FindEnemyInterval;

            m_ActorAI = new ActorFsmAI(this, AIModeType.Auto, atkDist, followDist, waringDist, findEnemyInterval);
            m_ActorAI.Start();
        }
示例#3
0
        public virtual void Clear()
        {
            RemoveBoard();
            RemoveEffect();

            m_AIFeatures?.Clear();
            m_ActorStates?.Clear();

            m_Enemys?.Clear();
            m_Allys?.Clear();
            m_Targets?.Clear();

            m_ActorAI?.Clear();
            m_ActorBuff?.Clear();
            m_ActorSkill?.Clear();
            m_CommandReceiver?.Clear();

            m_ActorAI         = null;
            m_ActorBuff       = null;
            m_ActorCard       = null;
            m_ActorSkill      = null;
            m_CommandReceiver = null;
            GameEntry.Fsm.DestroyFsm(m_ActorFsm);
        }