public void Del3DModel() { if (mShowOne != null) { previouNum = 0; previousAttr = MonsterAttribute.DEFAULT_NO; mShowOne.DeleteSelf(); mShowOne = null; } if (CradSystemFx.GetInstance()._CRLuo_Rot_Inversion != null) { CradSystemFx.GetInstance()._CRLuo_Rot_Inversion.InputOBJ = null; } if (CradSystemFx.GetInstance()._CRLuo_ShowStage != null) { CradSystemFx.GetInstance()._CRLuo_ShowStage.DeleteSelf(); } m_data = null; if (m_Animator.GetFloat("Time") >= 10.0f) { m_Animator.SetFloat("aa", 0.0f); m_Animator.SetFloat("Time", 0.0f); m_Animator.SetFloat("Reset", 20.0f); } else { m_Animator.SetFloat("aa", 20.0f); m_Animator.SetFloat("Time", 0.0f); m_Animator.SetFloat("Reset", 0.0f); } }
public void del3DModel() { if (mShowOne != null) { previouNum = 0; previousAttr = MonsterAttribute.DEFAULT_NO; mShowOne.DeleteSelf(); mShowOne = null; } }
public void Close() { if (_Stage != null) { _Stage.DeleteSelf(); } if (m_CreateRoleBg != null) { Destroy(m_CreateRoleBg.gameObject); } Destroy(gameObject); }
public void DeleteList() { if (CardHeadCellList.Count == 0) { return; } for (int i = 0; i < CardHeadCellList.Count; i++) { CardHeadCellList[i].dealloc(); } CardHeadCellList.Clear(); mCradCellHoverDic.Clear(); mTargetPosDic.Clear(); mTargetPosDicIndex.Clear(); if (_CRLuo_ShowStage != null) { _CRLuo_ShowStage.DeleteSelf(); } mIsChoose = false; mAllCount = 0; }
void DestroyUI() { Destroy(m_CreateRoleBg); stage.DeleteSelf(); Destroy(gameObject); }
//同步数据的时候,返回主界面 public void SyncBackToMainUI() { List <Transform> btmChild = new List <Transform> (); for (int i = 0; i < _bottomRoot.transform.childCount; i++) { btmChild.Add(_bottomRoot.transform.GetChild(i)); } for (int i = 0; i < btmChild.Count; i++) { bool bfind = false; for (int j = 0; j < STATIC_BTMUI.Length; j++) { if (string.Equals(btmChild [i].name, STATIC_BTMUI[j])) { bfind = true; break; } } if (!bfind) { Destroy(btmChild [i].gameObject); } } List <Transform> topChild = new List <Transform> (); for (int i = 0; i < _TopRoot.transform.childCount; i++) { topChild.Add(_TopRoot.transform.GetChild(i)); } for (int i = 0; i < topChild.Count; i++) { bool bfind = false; for (int j = 0; j < STATIC_TOPUI.Length; j++) { if (string.Equals(topChild [i].name, STATIC_TOPUI[j])) { bfind = true; break; } } if (!bfind) { Destroy(topChild [i].gameObject); } } GameObject obj = GameObject.Find("ShowStage(Clone)"); if (obj != null) { CRLuo_ShowStage Stage = obj.GetComponent <CRLuo_ShowStage> (); if (Stage != null) { Stage.DeleteSelf(); } } obj = GameObject.Find("ShowStage_Card(Clone)"); if (obj != null) { CRLuo_ShowStage Stage = obj.GetComponent <CRLuo_ShowStage> (); if (Stage != null) { Stage.DeleteSelf(); } } obj = GameObject.Find("ShowMonsterStage(Clone)"); if (obj != null) { CRLuo_ShowStage Stage = obj.GetComponent <CRLuo_ShowStage> (); if (Stage != null) { Stage.DeleteSelf(); } } //一键退各种抽蛋 CradSystemFx.GetInstance().DeleteAllOneKey(); //一键退出副本 _PVERoot.ResetPVESystem(); ShowFor2D_UI(); }