예제 #1
0
 public static void OpenUI(object data, ConfigDataType type)
 {
     if (_mInstance == null)
     {
         Object prefab = PrefabLoader.loadFromPack("JC/LevelUpMsgBox");
         if (prefab != null)
         {
             GameObject obj = Instantiate(prefab) as GameObject;
             RED.TweenShowDialog(obj);
             RED.AddChild(obj, DBUIController.mDBUIInstance._TopRoot);
             _mInstance = obj.GetComponent <LevelUpMsgBox> ();
         }
     }
     else
     {
         RED.SetActive(true, _mInstance.gameObject);
     }
     _mInstance.Init(data, type);
 }