public static RankWindowCtrl CreatRankWindowCtrl() { UnityEngine.Object obj = WXLLoadPrefab.GetPrefab(WXLPrefabsName.UIMonsterComerRank); if (obj != null) { GameObject go = Instantiate(obj) as GameObject; RankWindowCtrl fc = go.GetComponent <RankWindowCtrl> (); Transform goTrans = go.transform; go.transform.parent = DBUIController.mDBUIInstance._TopRoot.transform; go.transform.localPosition = Vector3.zero; goTrans.localScale = Vector3.zero; RED.TweenShowDialog(go); return(fc); } return(null); }
/// <summary> /// Shows the rank. /// </summary> public void ShowRank() { showRankBtn.isEnabled = false; RankWindowCtrl.CreatRankWindowCtrl(); showRankBtn.isEnabled = true; }