Exemplo n.º 1
0
        public virtual void Init()
        {
            m_ActorSkill = new ActorSkill(this);
            m_ActorCard  = new ActorCard(this);
            m_ActorBuff  = new ActorBuff(this);

            InitAttribute(true);
            InitBornParam();
            InitCommands();
            InitLayer();
            InitAnim();
            InitAi();
            InitFeature();
            InitState();
            InitFsm();

            CreateBoard();
            ApplyCharacterCtrl(true);
        }
Exemplo n.º 2
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);
        }