Example #1
0
 void OnDisable()
 {
     IGuideTaskManager.Instance().RemoveTaskStartListerner(EGameEvent.eGameEvent_UIGuideNewsGuideStart, StartIGuideTask);
     IGuideTaskManager.Instance().RemoveTaskStartListerner(EGameEvent.eGameEvent_UIGuideSelfDefBtnStart, StartIGuideTask);
     IGuideTaskManager.Instance().RemoveTaskStartListerner(EGameEvent.eGameEvent_UIGuideMatchBtnStart, StartIGuideTask);
     if (CustomButton != null)
     {
         CustomButton.RemoveListener(PvpBtnOnPress);
     }
     if (BtnModeSelect != null)
     {
         for (int i = 0; i < BtnModeSelect.childCount; i++)
         {
             ButtonOnPress btn = BtnModeSelect.Find(modeName[i]).GetComponent <ButtonOnPress>();
             btn.RemoveListener(PvpBtnOnPress);
         }
     }
     if (BtnGuide != null)
     {
         for (int i = 0; i < BtnGuide.childCount; i++)
         {
             ButtonOnPress btn = BtnGuide.Find("Guide" + (i + 1)).GetComponent <ButtonOnPress>();
             btn.RemoveListener(PvpBtnOnPress);
         }
     }
     if (BtnCancel != null)
     {
         BtnCancel.RemoveListener(PvpBtnOnPress);
     }
     //FriendButton.RemoveListener(PvpBtnOnPress);
 }
Example #2
0
 private void OutSelectHero()
 {
     for (int i = 0; i < mHeroShowList.Count; i++)
     {
         EventDelegate.Add(mHeroShowList[i].onChange, OnSelectHero);
     }
     mBtnSure.RemoveListener(OnCommitHero);
     mBtnCloseBuy.RemoveListener(CloseBuy);
     mBtnBuy.RemoveListener(BuyHero);
     mStartCount = false;
 }
 void OnDisable()
 {
     btnVoice.RemoveListener(OnVoiceChange);
     btnSoundEffect.RemoveListener(OnSoundChange);
 }
Example #4
0
 void OnDisable()
 {
     SendBtn.RemoveListener(BtnOnPress);
 }
Example #5
0
 void OnDisable() {
     BaseDaBomb.StartEffectEvent -= StartGuideOver;
     btnPress.RemoveListener(PressOver);
 }