Пример #1
0
        public void EquipLevelUp()
        {
            var e = new UIEvent_SailingOperation(2);

            EventDispatcher.Instance.DispatchEvent(e);
            Close();
        }
Пример #2
0
        private void OnDisable()
        {
        #if !UNITY_EDITOR
            try
            {
        #endif
            EventDispatcher.Instance.RemoveEventListener(UIEvent_SailingPlayAnimation.EVENT_TYPE, PlayLevelUpAnimation);
            EventDispatcher.Instance.RemoveEventListener(UIEvent_SailingPlayEatAnim.EVENT_TYPE, PlayEatAllAnim);
            //EventDispatcher.Instance.RemoveEventListener(UIEvent_SailingFlyAnim.EVENT_TYPE, ExpFlyAnim);
            EventDispatcher.Instance.RemoveEventListener(AutoRecycleMedalEvent.EVENT_TYPE, OnAutoRecycleMedalEvent);
            EventDispatcher.Instance.DispatchEvent(new UIEvent_SailingOperation(6));
            Binding.RemoveBinding();


            var e = new UIEvent_SailingOperation(4, 0);
            EventDispatcher.Instance.DispatchEvent(e);

        #if !UNITY_EDITOR
        }
        catch (Exception ex)
        {
            Logger.Error(ex.ToString());
        }
        #endif
        }
Пример #3
0
        public void LevelUpClick()
        {
            var e = new UIEvent_SailingOperation(3);

            EventDispatcher.Instance.DispatchEvent(e);
        }
Пример #4
0
        public void CloseWoodTips()
        {
            var e = new UIEvent_SailingOperation(8);

            EventDispatcher.Instance.DispatchEvent(e);
        }
Пример #5
0
        public void WoodTipsOk()
        {
            var e = new UIEvent_SailingOperation(7);

            EventDispatcher.Instance.DispatchEvent(e);
        }
Пример #6
0
        //线的点击
        public void AutoShipClick()
        {
            var e = new UIEvent_SailingOperation(4);

            EventDispatcher.Instance.DispatchEvent(e);
        }