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