| | |
| | | TraceBegin("Start", "冷启动入口");
|
| | | Debug.LogWarning("[Launch] Start");
|
| | |
|
| | | #if UNITY_WEBGL && DOUYINMINIGAME && !UNITY_EDITOR
|
| | | #if UNITY_WEBGL && DOUYINMINIGAME && !UNITY_EDITOR
|
| | | TraceBegin("PlatformBootstrap", "平台SDK初始化");
|
| | | bool sdkReady = await PlatformBootstrap.InitAsync();
|
| | | TraceEnd("PlatformBootstrap", "平台SDK初始化", $"结果: SDK={(sdkReady ? "就绪" : "未启用/失败")}");
|
| | | #endif
|
| | |
|
| | | #endif
|
| | |
|
| | | #if UNITY_WEBGL && DOUYINMINIGAME
|
| | | PlatformBootstrap.ReportEvent("launch_1_start");
|
| | | #endif
|
| | |
|
| | | #if UNITY_WEBGL
|
| | | await VersionConfigEx.Get();
|
| | |
| | | if (_hotUpdateAss == null)
|
| | | _hotUpdateAss = System.AppDomain.CurrentDomain.GetAssemblies().First(a => a.GetName().Name == "Main");
|
| | | #endif
|
| | |
|
| | | #if UNITY_WEBGL && DOUYINMINIGAME
|
| | | PlatformBootstrap.ReportEvent("launch_5_startgame");
|
| | | #endif
|
| | |
|
| | |
|
| | | LocalResManager.step = LocalResManager.LoadDllStep.None;
|
| | | // m_UICanvas.gameObject.SetActive(false);
|
| | | DestroySingleton();
|
| | |
| | |
|
| | | TraceEnd("ReadDllBytes", "热更DLL加载", $"DLL数量: {ALL_DLL_NAMES.Length}");
|
| | | callback?.Invoke();
|
| | |
|
| | | #if UNITY_WEBGL && DOUYINMINIGAME
|
| | | PlatformBootstrap.ReportEvent("launch_4_dll");
|
| | | #endif
|
| | | }
|
| | |
|
| | | private async UniTask LoadSingleDllAsync(ResourcePackage dllPackage, string dllName)
|