예제 #1
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);
 }
예제 #2
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();
     }
 }
예제 #3
0
    public static void Open3D()
    {
        Object obj = PrefabLoader.loadFromPack("LS/pbLSEggCard", true);

        if (obj != null)
        {
            GameObject go = Instantiate(obj) as GameObject;
            _mInstance = go.GetComponent <EggCard>();
        }
    }
예제 #4
0
    public void OnShow(ItemOfReward[] _rewards, int _Moneynum, bool isShowEgg, bool _IsStone, bool _AbleRepay)
    {
        this._rewards = _rewards;
        m_NeedMoney   = _Moneynum;
        m_IsStone     = _IsStone;
        m_AbleRepay   = _AbleRepay;
        EggCard.Open3D();

        Invoke("BeginPointFx", 5.6f);
        Invoke("PlayAudio", 2.0f);
    }