| | |
| | | // 否则回退到 WebGLRemoteConfig(Editor 模拟或无版本服务器场景)。
|
| | | string webCdnUrl = VersionConfigEx.config?.cdnUrl;
|
| | | remoteServices = !string.IsNullOrEmpty(webCdnUrl)
|
| | | ? new UrlRemoteServices(webCdnUrl)
|
| | | ? new UrlRemoteServices(webCdnUrl + "/" + Application.platform.ToString().ToLower())
|
| | | : WebGLRemoteConfig.CreateRemoteServices();
|
| | | Debug.Log($"[Launch] WebGL remoteServices url={(!string.IsNullOrEmpty(webCdnUrl) ? webCdnUrl : WebGLRemoteConfig.ActiveServerURL)}");
|
| | | #else
|
| | |
| | | if (!string.IsNullOrEmpty(cdnUrl))
|
| | | {
|
| | | playMode = EPlayMode.HostPlayMode;
|
| | | remoteServices = new UrlRemoteServices(cdnUrl);
|
| | | remoteServices = new UrlRemoteServices(cdnUrl + "/" + Application.platform.ToString().ToLower());
|
| | | Debug.Log($"[Launch] cdnUrl={cdnUrl}, using HostPlayMode");
|
| | | }
|
| | | else
|