private void InitUI() { m_uiResInit = GameObject.Find("panel_init").AddComponent <UIPanelResInit>(); m_uiResInit.Init(); m_uiResInitDialog = GameObject.Find("panel_res_init_dialog").AddComponent <UIPanelResInitDialog>(); m_uiResInitDialog.Init(); }
public bool Init() { if (Client.Inst() == null) { return(false); } LogicSystem.Inst = new LogicSystem(); LogicSystem.Inst.InitModule(); m_panelInit = Client.Inst().m_uiResInit; m_panelDialog = Client.Inst().m_uiResInitDialog; m_panelInit.OpenPanel(true); m_panelInit.SetText("获取版本信息"); m_panelInit.SetVersion("AppVersion:" + Application.version); if (Application.isEditor) { //InitIos(); InitAndCheckUpdate(); } else { if (Client.Inst().isCheckAppVersion) { //if (Application.platform == RuntimePlatform.Android) //{ // InitAndroid(); //} //else if (Application.platform == RuntimePlatform.IPhonePlayer) //{ // InitIos(); //} //InitIos(); } else { InitAndCheckUpdate(); } } return(true); }