private static void CreateInstance() { if (GUIPropertyTypeInfoPopUp.mInstance != null) { return; } GameObject gameObject = Res.LoadGUI("GUI/GUIPropertyTypeInfoPopUp"); if (gameObject == null) { global::Debug.LogError(new object[] { "Res.Load GUI/GUIPropertyTypeInfoPopUp error" }); return; } GameObject gameObject2 = NGUITools.AddChild(GameUIManager.mInstance.uiCamera.gameObject, gameObject); if (gameObject2 == null) { global::Debug.LogError(new object[] { "AddChild GUIPropertyTypeInfoPopUp error" }); return; } gameObject2.transform.localPosition = new Vector3(0f, 0f, 1000f); GUIPropertyTypeInfoPopUp.mInstance = gameObject2.AddComponent<GUIPropertyTypeInfoPopUp>(); }
private void CloseImmediate() { UnityEngine.Object.Destroy(GUIPropertyTypeInfoPopUp.mInstance.gameObject); GUIPropertyTypeInfoPopUp.mInstance = null; }