void OnShowSingle(ItemOfReward[] _rewards, int _Moneynum, bool isShowEgg, bool _IsStone, bool _AbleRepay) { m_NeedMoney = _Moneynum; m_IsStone = _IsStone; m_AbleRepay = _AbleRepay; this._rewards = _rewards; Monster mm = _rewards[0].toMonster(Core.Data.monManager); UISingleCardFx.OpenCardSinglePanel(); if (isShowEgg == false) { EggCardSingle.Open3DWithoutEgg(mm.Star); UISingleCardFx.GetInstance().showTime = 5; } else { EggCardSingle.Open3D(mm.Star); } if (isShowEgg) { Invoke("SetSingleBtn", 10f); Invoke("PlayAudio", 2.0f); } else { Invoke("SetSingleBtn", 6f); Invoke("PlayAudio", 2.0f); } }
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 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(); } }
public void CheckRepalyOrPlay(ItemOfReward[] _rewards, int _Moneynum, bool isShowEgg, bool _IsStone, bool _AbleRepay) { if (UISingleCardFx.GetInstance() == null) { OnShowSingle(_rewards, _Moneynum, isShowEgg, _IsStone, _AbleRepay); } else { Start(); OnShowSingle(_rewards, _Moneynum, isShowEgg, _IsStone, _AbleRepay); } }
public static void OpenCardSinglePanel() { if (_mInstance == null) { Object obj = PrefabLoader.loadFromPack("LS/pbLSEggCarlPanel", true); if (obj != null) { GameObject go = Instantiate(obj) as GameObject; RED.AddChild(go, DBUIController.mDBUIInstance._TopRoot); _mInstance = go.GetComponent <UISingleCardFx>(); go.layer = 9; } } else { _mInstance.ResetDefault(); _mInstance.Start(); } }
void OnDestroy() { _mInstance = null; }