Exemplo n.º 1
0
        private IEnumerator Init()
        {
            yield return(Client.instance.assetBundleUpdater.CheckUpdate());

            yield return(Client.instance.assetBundleManager.Initialize());

            yield return(LuaRequireLoader.LoadLuaFiles());
        }
Exemplo n.º 2
0
        private IEnumerator IEResourceCheck()
        {
            if (!EditorModeConst.IsEditorMode)
            {
                HideFade();
                Client.instance.uiManager.uiLoadingPanel.SetDesc("下载资源中");
                yield return(AssetBundleCheck());

                Client.instance.uiManager.SetLoadingPct(1);
                Client.instance.uiManager.uiLoadingPanel.SetDesc("加载资源中");
                yield return(Client.instance.assetBundleManager.Initialize());

                yield return(LuaRequireLoader.LoadLuaFiles());
            }

            XLuaManager.instance.OnInit();
            XLuaManager.instance.StartXLua();
            Client.instance.Goto <StageTest>(0,
                                             () => { Client.instance.uiManager.uiLoadingPanel.Reset(); });
        }