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); }
private void OnManifestLoaded(Resource res) { if (res.GetState() == eResourceState.eRS_NoFile) { ResourceFactory.Inst.UnLoadResource(res, true); UIPanelResInitDialog.OpenNoConnNet(); return; } // 主配置不用销毁,因为要把配置给下载器使用 ResourceManager.ABManifest = ((ManifestResource)res).GetManifest(); //获取总的Manifest ResInfo rInfo = new ResInfo(); rInfo.m_bDepend = false; rInfo.strName = "allresinfo"; rInfo.strUrl = "config/allresinfo"; rInfo.iType = ResType.ResInfosResource; ResourceFactory.Inst.LoadResource(rInfo, OnResInfoLoaded); }