Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 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();
     }
 }
Exemplo n.º 4
0
    public static void OpenUI()
    {
        Object obj = PrefabLoader.loadFromPack("LS/pbLSCardPointFx", true);

        if (obj != null)
        {
            GameObject go = Instantiate(obj) as GameObject;
            _Instance = go.GetComponent <UICardPointFx>();
        }
    }
Exemplo n.º 5
0
 void BeginPointFx()
 {
     UICardPointFx.OpenUI();
     Invoke("AllOnShow", 1.7f);
     Core.Data.soundManager.SoundFxPlay(SoundFx.FX_Dragon);
 }