コード例 #1
0
ファイル: StateControl.cs プロジェクト: zuojiashun/Unity3DFSM
            public DieState m_cDieState;           //死亡状态

            public StateWrap(GfxObject obj)
            {
                this.m_cIdleState     = new IdleState(obj);
                this.m_cAttackState   = new AttackState(obj);
                this.m_cMoveState     = new MoveState(obj);
                this.m_cMoveBackState = new MoveBackState(obj);
                this.m_cHurtState     = new HurtState(obj);
                this.m_cSkillState    = new SkillState(obj);
                this.m_cDieState      = new DieState(obj);
            }
コード例 #2
0
ファイル: StateControl.cs プロジェクト: baoluqi/Unity3DFSM
            public SkillState m_cSkillState; //技能状态

            #endregion Fields

            #region Constructors

            public StateWrap(GfxObject obj)
            {
                this.m_cIdleState = new IdleState(obj);
                this.m_cAttackState = new AttackState(obj);
                this.m_cMoveState = new MoveState(obj);
                this.m_cMoveBackState = new MoveBackState(obj);
                this.m_cHurtState = new HurtState(obj);
                this.m_cSkillState = new SkillState(obj);
                this.m_cDieState = new DieState(obj);
            }