public void LoadConfigIpCallback() { LoginPanel.GetInst().OnConfigLoadEnd(); ServerListPanel.GetInst().SetServerInfo(); _gameObject.SetActive(false); ApplicationEntry.GetInst().OnConfigLoadEnd(); }
public static GuidePanel GetInst() { if (_inst == null) { ResourceLoader.LoadAssetAndInstantiate("PrefabUI/Common/GuidePanel", ApplicationEntry.GetInst().uiRoot); } return(_inst); }
public static void ShowMsgBox(string sTitle, string sContent, int iType, MsgCallback okCb = null, MsgCallback cancelCb = null, string singleMark = "") { if (singleMark != string.Empty) { if (lstMsgBox.Contains(singleMark)) { return; } lstMsgBox.Add(singleMark); } GameObject go = Instantiate(Resources.Load <GameObject>("PrefabUI/Common/MessageBox")); Transform tran = go.transform; tran.SetParent(ApplicationEntry.GetInst().uiRoot, false); tran.localScale = Vector3.one; go.GetComponent <MsgBoxPanel>().Show(sTitle, sContent, iType, okCb, cancelCb, singleMark); }