Ejemplo n.º 1
0
        public override void Shutdown()
        {
            base.Shutdown();

            GameEntry.Pool.UnSpawnClassObject(m_SkillTaskManager);
            m_SkillTaskManager = null;

            GameEntry.Pool.UnSpawnClassObject(m_Skills);
            m_Skills.Clear();
            m_Skills = null;
        }
Ejemplo n.º 2
0
        public override void Init()
        {
            base.Init();
            m_SkillTaskManager = GameEntry.Pool.SpawnClassObject <SkillTaskManager>();
            m_SkillTaskManager.RemoveAllTask();


            m_Skills = GameEntry.Pool.SpawnClassObject <Dictionary <int, SkillData> >();
            m_Skills.Clear();

            m_Skills[10001] = new SkillData()
            {
                SkillId            = 10001,
                IsNormalAttack     = 1,
                SkillAnimatorIndex = 1,
                Skill_effect_name  = "skill_mxz_attack1",
                Skill_effect_time  = 1f,
                SoundId            = 10001,
                SkillNeedTime      = 0.7f,
            };

            m_Skills[10002] = new SkillData()
            {
                SkillId            = 10002,
                IsNormalAttack     = 1,
                SkillAnimatorIndex = 2,
                Skill_effect_name  = "skill_mxz_attack2",
                Skill_effect_time  = 1.333f,
                SoundId            = 10002,
                SkillNeedTime      = 1.033f,
            };

            m_Skills[10003] = new SkillData()
            {
                SkillId            = 10003,
                IsNormalAttack     = 1,
                SkillAnimatorIndex = 3,
                Skill_effect_name  = "skill_mxz_attack3",
                Skill_effect_time  = 1f,
                SoundId            = 10003,
                SkillNeedTime      = 0.7f,
            };

            m_Skills[10004] = new SkillData()
            {
                SkillId            = 10004,
                IsNormalAttack     = 1,
                SkillAnimatorIndex = 4,
                Skill_effect_name  = "skill_mxz_attack4",
                Skill_effect_time  = 1.3f,
                SoundId            = 10004,
                SkillNeedTime      = 1f,
            };

            m_Skills[10005] = new SkillData()
            {
                SkillId            = 10005,
                IsNormalAttack     = 1,
                SkillAnimatorIndex = 5,
                Skill_effect_name  = "skill_mxz_204_1",
                Skill_effect_time  = 0.933f,
                SoundId            = 10016,
                SkillNeedTime      = 0.633f,
            };

            m_Skills[10006] = new SkillData()
            {
                SkillId            = 10006,
                IsNormalAttack     = 1,
                SkillAnimatorIndex = 6,
                Skill_effect_name  = "skill_mxz_204_2",
                Skill_effect_time  = 0.933f,
                SoundId            = 10017,
                SkillNeedTime      = 0.633f,
            };

            m_Skills[10007] = new SkillData()
            {
                SkillId            = 10007,
                IsNormalAttack     = 1,
                SkillAnimatorIndex = 7,
                Skill_effect_name  = "skill_mxz_204_3",
                Skill_effect_time  = 1.667f,
                SoundId            = 10018,
                SkillNeedTime      = 1.367f,
            };


            m_Skills[10008] = new SkillData()
            {
                SkillId            = 10008,
                IsNormalAttack     = 0,
                SkillAnimatorIndex = 7,
                Skill_effect_name  = "skill_mxz_104",
                Skill_effect_time  = 1.2f,
                SoundId            = 10013,
                SkillNeedTime      = 0.9f,
            };

            m_Skills[10009] = new SkillData()
            {
                SkillId            = 10009,
                IsNormalAttack     = 0,
                SkillAnimatorIndex = 8,
                Skill_effect_name  = "skill_mxz_201",
                Skill_effect_time  = 1.113f,
                SoundId            = 10014,
                SkillNeedTime      = 0.913f,
            };

            m_Skills[10010] = new SkillData()
            {
                SkillId            = 10010,
                IsNormalAttack     = 0,
                SkillAnimatorIndex = 4,
                Skill_effect_name  = "skill_mxz_103_1",
                Skill_effect_time  = 1.167f,
                SoundId            = 10010,
                SkillNeedTime      = 0.867f,
            };

            m_Skills[10011] = new SkillData()
            {
                SkillId            = 10011,
                IsNormalAttack     = 0,
                SkillAnimatorIndex = 5,
                Skill_effect_name  = "skill_mxz_103_2",
                Skill_effect_time  = 1.167f,
                SoundId            = 10011,
                SkillNeedTime      = 0.867f,
            };

            m_Skills[10012] = new SkillData()
            {
                SkillId            = 10012,
                IsNormalAttack     = 0,
                SkillAnimatorIndex = 6,
                Skill_effect_name  = "skill_mxz_103_3",
                Skill_effect_time  = 1.467f,
                SoundId            = 10012,
                SkillNeedTime      = 1.167f,
            };

            m_Skills[10013] = new SkillData()
            {
                SkillId            = 10013,
                IsNormalAttack     = 0,
                SkillAnimatorIndex = 12,
                Skill_effect_name  = "skill_mxz_204",
                Skill_effect_time  = 1,
                SoundId            = 10019,
                SkillNeedTime      = 0.7f,
            };
            //todo
        }