三国卡牌客户端基础资源仓库
hch
2026-05-19 2b58e2ea2fc26e9aa58e960c2bbcde8f564ba0ae
0312 增加地址输出
2个文件已修改
7 ■■■■■ 已修改文件
Assets/Launch/Launch.cs 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Launch/Manager/YooAssetInitializer.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Assets/Launch/Launch.cs
@@ -144,7 +144,7 @@
                ? null
                : WebGLRemoteConfig.CreateRemoteServices();
            if (!string.IsNullOrEmpty(webCdnUrl))
                remoteCdnBaseUrl = webCdnUrl + "/" + Application.platform.ToString().ToLower();
                remoteCdnBaseUrl = webCdnUrl;
            Debug.Log($"[Launch] WebGL remoteCdnBaseUrl={remoteCdnBaseUrl ?? WebGLRemoteConfig.ActiveServerURL}");
#else
            // 非 WebGL 正式包:
@@ -157,7 +157,7 @@
            if (!string.IsNullOrEmpty(cdnUrl))
            {
                playMode = EPlayMode.HostPlayMode;
                remoteCdnBaseUrl = cdnUrl + "/" + Application.platform.ToString().ToLower();
                remoteCdnBaseUrl = cdnUrl;
                Debug.Log($"[Launch] cdnUrl={cdnUrl}, using HostPlayMode");
            }
            else
@@ -168,7 +168,7 @@
#endif
            Debug.Log($"[Launch] Initializing YooAsset early with PlayMode={playMode}");
            await YooAssetInitializer.Instance.InitializeAsync(playMode, remoteServices, remoteCdnBaseUrl);
            await YooAssetInitializer.Instance.InitializeAsync(playMode, remoteServices, remoteCdnBaseUrl + LocalResManager.fixPath);
#if UNITY_WEBGL
            await VersionConfigEx.Get();
Assets/Launch/Manager/YooAssetInitializer.cs
@@ -153,6 +153,7 @@
        _playMode = playMode;
        _remoteServices = remoteServices;
        _remoteCdnBaseUrl = remoteCdnBaseUrl;
        Debug.LogFormat("Yoo InitializeAsync cdn地址 {0}", remoteCdnBaseUrl);
        var names = packageNames ?? LAUNCH_PACKAGES;
        int successCount = 0;