| | |
| | | ? 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 正式包:
|
| | |
| | | if (!string.IsNullOrEmpty(cdnUrl))
|
| | | {
|
| | | playMode = EPlayMode.HostPlayMode;
|
| | | remoteCdnBaseUrl = cdnUrl + "/" + Application.platform.ToString().ToLower();
|
| | | remoteCdnBaseUrl = cdnUrl;
|
| | | Debug.Log($"[Launch] cdnUrl={cdnUrl}, using HostPlayMode");
|
| | | }
|
| | | else
|
| | |
| | | #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();
|