Beispiel #1
0
        // 析构函数, 移除监听的各种事件
        virtual public void Clean()
        {
            theOwner.RemoveUniqEventListener <int>(Events.FSMMotionEvent.OnPrepareEnd, OnPrepareEnd);
            theOwner.RemoveUniqEventListener <int>(Events.FSMMotionEvent.OnAttackingEnd, OnAttackingEnd);
            theOwner.RemoveUniqEventListener <int>(Events.FSMMotionEvent.OnHitAnimEnd, OnHitAnimEnd);
            theOwner.RemoveUniqEventListener(Events.FSMMotionEvent.OnRollEnd, OnRollEnd);

            EventDispatcher.RemoveEventListener <int, uint, uint, List <int> >(Events.FSMMotionEvent.OnHit, OnHit);
        }