public static void OpenUI() { UnityEngine.Object obj = PrefabLoader.loadFromPack("LS/pbLSMailAndBattleRoot"); if (obj != null) { GameObject go = RUIMonoBehaviour.Instantiate(obj) as GameObject; _instance = go.GetComponent <UIMailAndBattleMain>(); RED.AddChild(go.gameObject, DBUIController.mDBUIInstance._bottomRoot); } }
void Awake() { _instance = this; }