예제 #1
0
        public void dispose()
        {
            if (m_controlRes != null)
            {
                Ctx.m_instance.m_controllerMgr.unload(m_controlRes.GetPath(), null);
                m_controlRes = null;
            }

            if (m_animator != null)
            {
                UtilApi.Destroy(m_animator.runtimeAnimatorController);
            }

            if (m_nextFrametimer != null)
            {
                Ctx.m_instance.m_frameTimerMgr.delObject(m_nextFrametimer);
                m_nextFrametimer = null;
            }
            if (m_idleStateFrametimer != null)
            {
                Ctx.m_instance.m_frameTimerMgr.delObject(m_idleStateFrametimer);
                m_idleStateFrametimer = null;
            }
            if (m_oneAniEndTimer != null)
            {
                Ctx.m_instance.m_timerMgr.delObject(m_oneAniEndTimer);
                m_oneAniEndTimer = null;
            }

            m_oneAniPlayEndDisp.clearEventHandle();
        }
예제 #2
0
        public override void dispose()
        {
            m_moveDestEventDispatch.clearEventHandle();
            m_moveDestEventDispatch = null;

            base.dispose();
        }
예제 #3
0
 override public void dispose()
 {
     base.dispose();
     m_clickEntityDisp.clearEventHandle();
     m_downEntityDisp.clearEventHandle();
     m_upEntityDisp.clearEventHandle();
     m_dragOverEntityDisp.clearEventHandle();
     m_dragOutEntityDisp.clearEventHandle();
 }
예제 #4
0
 public void dispose()
 {
     m_needUpdateDisp.clearEventHandle();
 }
예제 #5
0
 override public void dispose()
 {
     m_attackEndDisp.clearEventHandle();
     m_attackEndDisp = null;
     base.dispose();
 }