Example #1
0
 public static void OpenUI(params System.Action [] action)
 {
     if (Instance == null)
     {
         Object prefab = PrefabLoader.loadFromPack("JC/ForgingRoomUI");
         if (prefab != null)
         {
             GameObject obj = Instantiate(prefab) as GameObject;
             RED.AddChild(obj, DBUIController.mDBUIInstance._bottomRoot);
             m_Instance         = obj.GetComponent <ForgingRoomUI> ();
             m_Instance.CurPage = ForgingPage.Forging_Main;
             if (action.Length > 0)
             {
                 m_Instance.Exit = action[0];
             }
         }
     }
 }
Example #2
0
 void OnDestroy()
 {
     m_Instance = null;
 }
Example #3
0
 //销毁锻造系统
 public void DestoryForgingRoomUI()
 {
     Destroy(gameObject);
     DBUIController.mDBUIInstance.ShowFor2D_UI();
     m_Instance = null;
 }