public void Back_Onclick()
 {
     if (EggCard.GetInstance() != null)
     {
         EggCard.GetInstance().dealloc();
     }
     if (EggCardSingle.GetInstance() != null)
     {
         EggCardSingle.GetInstance().Delete();
     }
     if (UISingleCardFx.GetInstance() != null)
     {
         UISingleCardFx.GetInstance().dealloc();
     }
     if (UICardPointFx.GetInstance() != null)
     {
         UICardPointFx.GetInstance().dealloc();
     }
     if (CradSystemFx.GetInstance().mSelectScript != null)
     {
         Destroy(CradSystemFx.GetInstance().mSelectScript.gameObject);
     }
     if (CradSystemFx.GetInstance().m_UIEggCellIntroduct != null)
     {
         Destroy(CradSystemFx.GetInstance().m_UIEggCellIntroduct.gameObject);
     }
     DBUIController.mDBUIInstance.RefreshUserInfo();
     UIMiniPlayerController.Instance.SetActive(true);
     Destroy(gameObject);
 }
 public void CheckRepalyOrPlayTen(ItemOfReward[] _rewards, int _Moneynum, bool isShowEgg, bool _IsStone, bool _AbleRepay)
 {
     if (UICardPointFx.GetInstance() == null)
     {
         OnShow(_rewards, _Moneynum, isShowEgg, _IsStone, _AbleRepay);
     }
     else
     {
         CradSystemFx.GetInstance().DeleteList();
         if (CradSystemFx.GetInstance().mSelectScript != null)
         {
             Destroy(CradSystemFx.GetInstance().mSelectScript.gameObject);
         }
         if (CradSystemFx.GetInstance().m_UIEggCellIntroduct != null)
         {
             Destroy(CradSystemFx.GetInstance().m_UIEggCellIntroduct.gameObject);
         }
         if (UICardPointFx.GetInstance() != null)
         {
             UICardPointFx.GetInstance().dealloc();
         }
         Start();
         OnShow(_rewards, _Moneynum, isShowEgg, _IsStone, _AbleRepay);
     }
 }
Example #3
0
 public void DeleteAllOneKey()
 {
     if (EggCardSingle.GetInstance() != null)
     {
         EggCardSingle.GetInstance().Delete();
     }
     if (EggCard.GetInstance() != null)
     {
         EggCard.GetInstance().dealloc();
     }
     if (UISingleCardFx.GetInstance() != null)
     {
         UISingleCardFx.GetInstance().dealloc();
     }
     if (UICardPointFx.GetInstance() != null)
     {
         UICardPointFx.GetInstance().dealloc();
     }
     if (this.mSelectScript != null)
     {
         this.mSelectScript.dealloc();
     }
     if (this.m_UIEggCellIntroduct != null)
     {
         this.m_UIEggCellIntroduct.dealloc();
     }
 }