Exemple #1
0
        void RemoveEvent()
        {
            m_eventMgr.RemoveListener(GameEvent.GE_PLAYER_LOADING_OVER, EventFunction);

            m_eventMgr.RemoveListener(GameEvent.GE_CAMERA_EVENT_HEIGHT_ACTIVE, EventFunction);
            m_eventMgr.RemoveListener(GameEvent.GE_CAMERA_EVENT_HEIGHT_DISABLE, EventFunction);
        }
Exemple #2
0
        void OnDestroy()
        {
            m_eventMgr.RemoveListener(GameEvent.GE_PLAYER_LOADING_OVER, EventFunction);
            m_eventMgr.RemoveListener(GameEvent.GE_CAMERA_EVENT_HEIGHT_ACTIVE, EventFunction);
            m_eventMgr.RemoveListener(GameEvent.GE_CAMERA_EVENT_HEIGHT_DISABLE, EventFunction);
            //m_eventMgr.RemoveListener(GameEvent.GE_CAMERA_EVENT_HEIGHT_DISABLE, EventFunction);

            //BOSS腾空技能
            m_eventMgr.RemoveListener(GameEvent.GE_BOSS_RISE_TO_SKY_START, EventFunction);
            m_eventMgr.RemoveListener(GameEvent.GE_BOSS_RISE_TO_SKY_STATED, EventFunction);
            m_eventMgr.RemoveListener(GameEvent.GE_BOSS_RISE_TO_SKY_END, EventFunction);

            //Boss死亡
            m_eventMgr.RemoveListener(GameEvent.GE_MONSTER_DEATH, EventFunction);
            //Player死亡
            m_eventMgr.RemoveListener(GameEvent.GE_PLAYER_DEATH, EventFunction);
        }
Exemple #3
0
        void RemoveEvent()
        {
            m_EventMgr.RemoveListener(GameEvent.GE_NOTIFY_CAST_SKILL, EventFunction);
            m_EventMgr.RemoveListener(GameEvent.GE_NOTIFY_SHOW_SKILL_SCOPE, EventFunction);
            m_EventMgr.RemoveListener(GameEvent.GE_NOTIFY_HIDE_SKILL_SCOPE, EventFunction);


            m_EventMgr.RemoveListener(GameEvent.GE_SC_SKILLEFFECT, EventFunction);

            m_EventMgr.RemoveListener(GameEvent.GE_SC_KNOCKBACK, EventFunction);
            m_EventMgr.RemoveListener(GameEvent.GE_SC_ADDBUFF, EventFunction);
            m_EventMgr.RemoveListener(GameEvent.GE_SC_ADDBUFFList, EventFunction);
            m_EventMgr.RemoveListener(GameEvent.GE_SC_UPDATEBUFF, EventFunction);
            m_EventMgr.RemoveListener(GameEvent.GE_SC_DELBUFF, EventFunction);


            m_EventMgr.RemoveListener(GameEvent.GE_SC_OTHER_CASTSKILL_BEGIN, EventFunction);
            m_EventMgr.RemoveListener(GameEvent.GE_SC_OTHER_CASTSKILL_END, EventFunction);

            m_EventMgr.RemoveListener(GameEvent.GE_SC_CAST_MOVE_EFFECRT, EventFunction);
            //m_EventMgr.AddListener(GameEvent.GE_NOTIFY_SKILL_DAMAGE, EventFunction);
        }