public static void OpenUI(string m_content, CallBack tCallB) { Object obj = PrefabLoader.loadFromPack("LS/pbLSDragonBallBuyNum"); if (obj != null) { GameObject go = Instantiate(obj) as GameObject; if (go != null) { mInstance = go.GetComponent <UIDragonBallBuyNum>(); mInstance.mContent.SafeText(m_content); RED.TweenShowDialog(go); mInstance.SetContent(m_content, tCallB); go.transform.parent = DBUIController.mDBUIInstance._TopRoot.transform; go.transform.localScale = Vector3.one; go.transform.localPosition = Vector3.zero; } } }
void OnDestroy() { mInstance = null; }