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