示例#1
0
        public void LoadConfigIpCallback()
        {
            LoginPanel.GetInst().OnConfigLoadEnd();
            ServerListPanel.GetInst().SetServerInfo();
            _gameObject.SetActive(false);

            ApplicationEntry.GetInst().OnConfigLoadEnd();
        }
示例#2
0
 public static GuidePanel GetInst()
 {
     if (_inst == null)
     {
         ResourceLoader.LoadAssetAndInstantiate("PrefabUI/Common/GuidePanel", ApplicationEntry.GetInst().uiRoot);
     }
     return(_inst);
 }
示例#3
0
        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);
        }