From 7bf0f15cf0c61c78738582ae92b95dfea10dbf26 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期一, 15 九月 2025 12:25:21 +0800 Subject: [PATCH] 0312 资源加载调整 --- Main/Core/GameEngine/Launch/LaunchInHot.cs | 19 +++++-------------- 1 files changed, 5 insertions(+), 14 deletions(-) diff --git a/Main/Core/GameEngine/Launch/LaunchInHot.cs b/Main/Core/GameEngine/Launch/LaunchInHot.cs index 8ced7f0..ac90de4 100644 --- a/Main/Core/GameEngine/Launch/LaunchInHot.cs +++ b/Main/Core/GameEngine/Launch/LaunchInHot.cs @@ -26,27 +26,18 @@ Application.backgroundLoadingPriority = ThreadPriority.High; Screen.sleepTimeout = SleepTimeout.NeverSleep; - if (AssetSource.isUseAssetBundle) + if (!AssetSource.isUseAssetBundle) { - AssetBundleUtility.Instance.InitBuiltInAsset(); - } + InitSystemMgr(); + SDKUtils.Instance.Init(); //鍘焥dk鎺ュ彛 - InitSystemMgr(); - SDKUtils.Instance.Init(); //鍘焥dk鎺ュ彛 - - // 杩欓噷杩樻病寮�濮嬪姞杞介厤缃� 浣嗘槸鎻愬墠鍔犺浇浜嗕緵LaunchWin浣跨敤 - try - { - Debug.Log("鎷疯礉鍓嶅厛鍔犺浇浜嗚〃鏍�"); + // 杩欓噷杩樻病寮�濮嬪姞杞介厤缃� 浣嗘槸鎻愬墠鍔犺浇浜嗕緵LaunchWin浣跨敤 PriorLanguageConfig.LazyInit(); InitialFunctionConfig.LazyInit(); UIManager.Instance.OpenWindow<LaunchWin>(); } - catch (Exception e) - { - Debug.LogError("鍓嶇疆璧勬簮鍔犺浇澶辫触锛�" + e); - } + var builtInAssetCopyTask = new BuiltInAssetCopyTask(); var requestPermissionStart = new RequestPermissionStart(); -- Gitblit v1.8.0