Exemplo n.º 1
0
        private void OnDisable()
        {
        #if !UNITY_EDITOR
            try
            {
        #endif
            GenerateFakeModel(-1);
            DataModel.PropertyChanged -= OnEvent_PropertyChanged;

            if (null != ModelRoot.Character)
            {
                ModelRoot.DestroyFakeCharacter();
            }
            BindRoot.RemoveBinding();
            isPressed = false;

            EventDispatcher.Instance.RemoveEventListener(MissionAutoAcceptEvent.EVENT_TYPE, OnAutoAcceptEvent);
        #if !UNITY_EDITOR
        }

        catch (Exception ex)
        {
            Logger.Error(ex.ToString());
        }
        #endif
        }
Exemplo n.º 2
0
        private void OnDisable()
        {
#if !UNITY_EDITOR
            try
            {
#endif
            EventDispatcher.Instance.DispatchEvent(new MieShiDisappearModelRoot_Event(true));
            // SellMessage.SetActive(false);
            UseMessage.SetActive(false);
            BindRoot.RemoveBinding();
            {
                var __list1      = ShowContent;
                var __listCount1 = __list1.Count;
                for (var __i1 = 0; __i1 < __listCount1; ++__i1)
                {
                    var o = __list1[__i1];
                    {
                        if (o)
                        {
                            o.SetActive(false);
                        }
                    }
                }
            }
#if !UNITY_EDITOR
        }

        catch (Exception ex)
        {
            Logger.Error(ex.ToString());
        }
#endif
        }
Exemplo n.º 3
0
        private void OnDisable()
        {
        #if !UNITY_EDITOR
            try
            {
        #endif
            WorldToggle.value       = false;
            WorldToggle.mIsActive   = false;
            CurrentToggle.value     = true;
            CurrentToggle.mIsActive = true;
            if (CurrentToggle.activeSprite)
            {
                CurrentToggle.activeSprite.alpha = 1.0f;
            }
            if (WorldToggle.activeSprite)
            {
                WorldToggle.activeSprite.alpha = 0.0f;
            }
            CurrentMap.gameObject.SetActive(true);
            WorldMap.gameObject.SetActive(false);
            Binding.RemoveBinding();

        #if !UNITY_EDITOR
        }

        catch (Exception ex)
        {
            Logger.Error(ex.ToString());
        }
        #endif
        }
Exemplo n.º 4
0
        private void OnDisable()
        {
        #if !UNITY_EDITOR
            try
            {
        #endif
            Binding.RemoveBinding();

            AnimSuccess.gameObject.SetActive(false);
            AnimFail.gameObject.SetActive(false);
            foreach (var p in Particles)
            {
                p.gameObject.SetActive(false);
            }
            GuangHuan.SetActive(false);
            Anim.gameObject.SetActive(false);
            Anim.enabled  = false;
            lockAnimation = false;
        #if !UNITY_EDITOR
        }

        catch (Exception ex)
        {
            Logger.Error(ex.ToString());
        }
        #endif
        }
Exemplo n.º 5
0
 private void RemoveBindEvent()
 {
     Binding.RemoveBinding();
     EventDispatcher.Instance.RemoveEventListener(FriendNotify.EVENT_TYPE, OnEvent_FriendNotify);
     EventDispatcher.Instance.RemoveEventListener(CloseUiBindRemove.EVENT_TYPE, OnEvent_CancleBind);
     EventDispatcher.Instance.RemoveEventListener(FriendTabUpdateEvent.EVENT_TYPE, OnUpdateStackEvent);
 }
Exemplo n.º 6
0
 private void RemoveBindEvent()
 {
     EventDispatcher.Instance.RemoveEventListener(CloseUiBindRemove.EVENT_TYPE, OnEvent_CloseUiBindRemove);
     EventDispatcher.Instance.RemoveEventListener(UIEvent_NewStrongOperation.EVENT_TYPE, OnOperation);
     EventDispatcher.Instance.RemoveEventListener(SuitShowModelEvent.EVENT_TYPE, OnShowModel);
     Binding.RemoveBinding();
 }
Exemplo n.º 7
0
        private void OnDisable()
        {
        #if !UNITY_EDITOR
            try
            {
        #endif
            //Sky.SetActive(false);

//          if (UICamera.mainCamera)
//          {
//              UICamera.mainCamera.nearClipPlane = -10f;
//          }
            Binding.RemoveBinding();
            DestroyModel();
            EventDispatcher.Instance.RemoveEventListener(WingNotifyLogicEvent.EVENT_TYPE, OnNotifyWingLogicEvent);
            EventDispatcher.Instance.RemoveEventListener(WingModelRefreh.EVENT_TYPE, OnRefreshWingModel);
            //EventDispatcher.Instance.RemoveEventListener(WingRefreshStarPage.EVENT_TYPE, OnRefreshWingStarPage);

        #if !UNITY_EDITOR
        }
        catch (Exception ex)
        {
            Logger.Error(ex.ToString());
        }
        #endif
        }
Exemplo n.º 8
0
 private void RemoveBindEvent()
 {
     EventDispatcher.Instance.RemoveEventListener(RankRefreshModelView.EVENT_TYPE, OnRankRefreshModelView);
     EventDispatcher.Instance.RemoveEventListener(CloseUiBindRemove.EVENT_TYPE, OnCloseUiBindRemove);
     EventDispatcher.Instance.RemoveEventListener(RankNotifyLogic.EVENT_TYPE, OnRankNotifyLogic);
     Binding.RemoveBinding();
 }
Exemplo n.º 9
0
        private void OnDisable()
        {
        #if !UNITY_EDITOR
            try
            {
        #endif
            Binding.RemoveBinding();
            if (DrawCoroutine != null)
            {
                NetManager.Instance.StopCoroutine(DrawCoroutine);
                DrawCoroutine = null;
            }


            if (ModelRoot != null)
            {
                ModelRoot.DestroyFakeCharacter();
            }

            EventDispatcher.Instance.RemoveEventListener(FubenModelRefreshEvent.EVENT_TYPE, OnModelRefresh);

        #if !UNITY_EDITOR
        }

        catch (Exception ex)
        {
            Logger.Error(ex.ToString());
        }
        #endif
        }
Exemplo n.º 10
0
 private void RemoveBindEvent()
 {
     Binding.RemoveBinding();
     EventDispatcher.Instance.RemoveEventListener(CloseUiBindRemove.EVENT_TYPE, OnCloseUiBindRemove);
     EventDispatcher.Instance.RemoveEventListener(DungeonNetRetCallBack.EVENT_TYPE, OnFuBenNetRetCallBack);
     EventDispatcher.Instance.RemoveEventListener(DungeonGroupCellClick.EVENT_TYPE, OnClickFuBenGroupCell);
 }
Exemplo n.º 11
0
        private void RemoveBindingEvent()
        {
            EventDispatcher.Instance.RemoveEventListener(CloseUiBindRemove.EVENT_TYPE, OnCloseUIBindingRemove);

            Binding.RemoveBinding();
            DataModel.PropertyChanged -= OnEventPropertyChanged;
        }
Exemplo n.º 12
0
        private void OnDisable()
        {
#if !UNITY_EDITOR
            try
            {
#endif
            // EventDispatcher.Instance.RemoveEventListener(ElfGetDrawResultBack.EVENT_TYPE, DrawAnimationStart);
            //EventDispatcher.Instance.RemoveEventListener(UIEvent_WishingGetDrawResultBack.EVENT_TYPE, CreateTenPrefab);
            //EventDispatcher.Instance.RemoveEventListener(UIEvent_WishingTenDrawStop.EVENT_TYPE, TenDrawAnimationStop);
            //EventDispatcher.Instance.RemoveEventListener(UIEvent_WishingEatAllAnim.EVENT_TYPE, EatAllAnim);

            /**    while (varTenList.Count > 10)
             *  {
             *      Destroy(varTenList[0]);
             *      varTenList.RemoveAt(0);
             *  }**/
            Binding.RemoveBinding();
            //CreateFakeObj(-1);
            Destroy(baoXiangAni);
            baoXiangAni = null;

#if !UNITY_EDITOR
        }
        catch (Exception ex)
        {
            Logger.Error(ex.ToString());
        }
#endif
        }
Exemplo n.º 13
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
        }
Exemplo n.º 14
0
        private void RemoveBindingEvent()
        {
            Binding.RemoveBinding();

            EventDispatcher.Instance.RemoveEventListener(EventSystem.UIEvent_UpdateOnLineSeconds.EVENT_TYPE,
                                                         OnEvent_UpdateOnLineSeconds);
            EventDispatcher.Instance.RemoveEventListener(CloseUiBindRemove.EVENT_TYPE, OnCloseUIBindingRemove);
        }
Exemplo n.º 15
0
 private void RemoveBindEvent()
 {
     BindRoot.RemoveBinding();
     EventDispatcher.Instance.RemoveEventListener(EquipUIPackStart.EVENT_TYPE, OnEquipMentUiPackStart);
     EventDispatcher.Instance.RemoveEventListener(CloseUiBindRemove.EVENT_TYPE, OnCloseUiBindRemove);
     EventDispatcher.Instance.RemoveEventListener(EquipUiNotifyLogic.EVENT_TYPE, OnEquipMentUiNotify);
     EventDispatcher.Instance.RemoveEventListener(EquipUiNotifyRefreshCoumuseList.EVENT_TYPE, OnEquipMentUiRefreshConsumeList);
 }
Exemplo n.º 16
0
 private void RemoveBindingEvent()
 {
     Binding.RemoveBinding();
     PlayerBinding.RemoveBinding();
     EventDispatcher.Instance.RemoveEventListener(CloseUiBindRemove.EVENT_TYPE, OnCloseUIRemoveBinding);
     EventDispatcher.Instance.RemoveEventListener(UIEvent_UnionAnim.EVENT_TYPE, UnionAnimationControl);
     EventDispatcher.Instance.RemoveEventListener(BattleUnionRefreshModelViewLogic.EVENT_TYPE, OnRefreshRankModelView);
 }
Exemplo n.º 17
0
 private void DeleteListener()
 {
     EventDispatcher.Instance.RemoveEventListener(CloseUiBindRemove.EVENT_TYPE, OnEvent_CloseUI);
     BindData.RemoveBinding();
     if (theBag != null)
     {
         theBag.RemoveBindEvent();
     }
 }
Exemplo n.º 18
0
        private void RemoveBindEvent()
        {
            EventDispatcher.Instance.RemoveEventListener(CloseUiBindRemove.EVENT_TYPE, OnCloseUiBindRemove);
            EventDispatcher.Instance.RemoveEventListener(UIEvent_TradingFlyAnim.EVENT_TYPE, OnTradingFlyAnim);


            Binding.RemoveBinding();
            BackPackForTrading.RemoveBindEvent();
        }
Exemplo n.º 19
0
 private void DeleteBindEvent()
 {
     Binding.RemoveBinding();
     EventDispatcher.Instance.RemoveEventListener(ArenaSatueCellClick.EVENT_TYPE, OnJJCSatueCell);
     EventDispatcher.Instance.RemoveEventListener(SatueNotifyEvent.EVENT_TYPE, OnNotifySatue);
     EventDispatcher.Instance.RemoveEventListener(ArenaNotifyLogic.EVENT_TYPE, OnNotifyJJCLogic);
     EventDispatcher.Instance.RemoveEventListener(UIEvent_ArenaFlyAnim.EVENT_TYPE, JJCFlyAnim);
     EventDispatcher.Instance.RemoveEventListener(CloseUiBindRemove.EVENT_TYPE, OnCloseRemoveBinding);
 }
Exemplo n.º 20
0
 private void RemoveBindEvent()
 {
     EventDispatcher.Instance.RemoveEventListener(CloseUiBindRemove.EVENT_TYPE, OnCloseUiBindRemove);
     BindData.RemoveBinding();
     if (mBackPack != null)
     {
         mBackPack.RemoveBindEvent();
     }
 }
Exemplo n.º 21
0
 private void DeleteListener()
 {
     if (null != ModelRoot.Character)
     {
         ModelRoot.DestroyFakeCharacter();
     }
     Binding.RemoveBinding();
     EventDispatcher.Instance.RemoveEventListener(PlayerInfoRefreshModelView.EVENT_TYPE, OnEvent_PlayerDataChange);
     EventDispatcher.Instance.RemoveEventListener(CloseUiBindRemove.EVENT_TYPE, OnEvent_CloseUI);
 }
Exemplo n.º 22
0
 private void RemoveBindingEvent()
 {
     EventDispatcher.Instance.RemoveEventListener(CloseUiBindRemove.EVENT_TYPE, OnCloseUIBindingRemove);
     Binding.RemoveBinding();
     Attribute.RemoveEvent();
     if (backPack)
     {
         backPack.RemoveBindEvent();
     }
 }
Exemplo n.º 23
0
 private void RemoveBindingEvent()
 {
     EventDispatcher.Instance.RemoveEventListener(CloseUiBindRemove.EVENT_TYPE, OnCloseUIBindingRemove);
     EventDispatcher.Instance.RemoveEventListener(OperationActivityPage_Event.EVENT_TYPE, ChangePageEvent);
     EventDispatcher.Instance.RemoveEventListener(OperationActivitySubPagekEvent.EVENT_TYPE, ChangeSubTableEvent);
     EventDispatcher.Instance.RemoveEventListener(OperationActivityDrawLotteryEvent.EVENT_TYPE, OnOperationActivityDrawLotteryEvent);
     PageBindDataRoot.RemoveBinding();
     Binding.RemoveBinding();
     DataModel.PropertyChanged -= OnEventPropertyChanged;
 }
Exemplo n.º 24
0
        private void RemoveBindEvent()
        {
            Binding.RemoveBinding();
            if (MonsterModel != null)
            {
                MonsterModel.PropertyChanged -= OnMonsterPropertyChangedEvent;
            }

            EventDispatcher.Instance.RemoveEventListener(CloseUiBindRemove.EVENT_TYPE, OnCloseUiBindRemove);
        }
Exemplo n.º 25
0
        private void OnDisable()
        {
        #if !UNITY_EDITOR
            try
            {
        #endif

            EventDispatcher.Instance.RemoveEventListener(Event_ElfSkillBookLookIndex.EVENT_TYPE, BookScrollViewCenter);
            EventDispatcher.Instance.RemoveEventListener(ElfModelRefreshEvent.EVENT_TYPE, OnAnimalModelRefresh);
            EventDispatcher.Instance.RemoveEventListener(FormationElfModelRefreshEvent.EVENT_TYPE, OnFormationAnimalModelRefresh);
            EventDispatcher.Instance.RemoveEventListener(UIEvent_ElfSetGridLookIndex.EVENT_TYPE, LookScrollVievCenter);
            EventDispatcher.Instance.RemoveEventListener(FormationLevelupEvent.EVENT_TYPE, OnFormationLvUp);
            EventDispatcher.Instance.RemoveEventListener(ElfLevelupEvent.EVENT_TYPE, OnAnimalLevelup);
            EventDispatcher.Instance.RemoveEventListener(ElfSkillEvent.EVENT_TYPE, OnSkillAnimal);
            EventDispatcher.Instance.RemoveEventListener(ElfCell1ClickEvent.EVENT_TYPE, OnElfCell1Click);
            EventDispatcher.Instance.RemoveEventListener(ElfFlyEvent.EVENT_TYPE, OnAnimalFly);

            if (ModelRoot != null)
            {
                ModelRoot.DestroyFakeCharacter();
            }
            if (SkillModelRoot != null)
            {
                SkillModelRoot.DestroyFakeCharacter();
            }

            DestroyFormationModel();
            if (varTenList != null)
            {
                while (varTenList.Count > 10)
                {
                    Destroy(varTenList[0]);
                    varTenList.RemoveAt(0);
                }
            }
            Binding.RemoveBinding();
            if (DataModel != null)
            {
                DataModel.IsAnimating = false;
            }
            Destroy(baoXiangAni);
            baoXiangAni = null;
            BlurObject.SetActive(false);
        #if !UNITY_EDITOR
        }

        catch (Exception ex)
        {
            Logger.Error(ex.ToString());
        }
        #endif
        }
Exemplo n.º 26
0
        public void RemoveBindEvent()
        {
            BagInfoBind.RemoveBinding();
            EventDispatcher.Instance.RemoveEventListener(PackUnlockUIEvent.EVENT_TYPE, OnBagUnlockByPaid);
            EventDispatcher.Instance.RemoveEventListener(PackTradingSellPage.EVENT_TYPE, SetSellTradingPage);

            if (unlockTimerCoroutine != null)
            {
                NetManager.Instance.StopCoroutine(unlockTimerCoroutine);
                unlockTimerCoroutine = null;
            }
            mIsBinding = false;
        }
Exemplo n.º 27
0
 static int RemoveBinding(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         BindDataRoot obj = (BindDataRoot)ToLua.CheckObject(L, 1, typeof(BindDataRoot));
         obj.RemoveBinding();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemplo n.º 28
0
        private void OnDisable()
        {
#if !UNITY_EDITOR
            try
            {
#endif
            Binding.RemoveBinding();
#if !UNITY_EDITOR
        }
        catch (Exception ex)
        {
            Logger.Error(ex.ToString());
        }
#endif
        }
Exemplo n.º 29
0
 private void OnDisable()
 {
 #if !UNITY_EDITOR
     try
     {
 #endif
     //EventDispatcher.Instance.DispatchEvent(new Ui_OffLineFrame_SetVisible(false));
     Binding.RemoveBinding();
 #if !UNITY_EDITOR
 }
 catch (Exception ex)
 {
     Logger.Error(ex.ToString());
 }
 #endif
 }
Exemplo n.º 30
0
 private void OnDisable()
 {
 #if !UNITY_EDITOR
     try
     {
 #endif
     EventDispatcher.Instance.RemoveEventListener(UIEvent_SmithyFlyAnim.EVENT_TYPE, BlacksmithFlyAnim);
     Binding.RemoveBinding();
 #if !UNITY_EDITOR
 }
 catch (Exception ex)
 {
     Logger.Error(ex.ToString());
 }
 #endif
 }