IEnumerator StartGame() { statusText.text = "正在准备资源..."; #if UNITY_EDITOR || CLIENT_DEBUG // AssetBundleManager.Instance.TestHotfix(); #endif Logger.clientVerstion = clientAppVersion; ChannelManager.instance.resVersion = serverResVersion; //初始化wwise管理模块 AudioManager.instance.InitWwise(); yield return(null); // 启动xlua热修复模块 XLuaManager.Instance.Startup(); // 重启Lua虚拟机 Coroutine co = StartCoroutine(AssetBundleManager.Instance.PreLoadLua()); yield return(co); XLuaManager.Instance.OnInit(); XLuaManager.Instance.StartHotfix(); XLuaManager.Instance.StartGame(); CustomDataStruct.Helper.Startup(); UINoticeTip.Instance.DestroySelf(); Destroy(gameObject, 0.5f); GameUtility.DeleteFile(interruptFilePath); yield break; }