offline play mode supports WebGL platform.

离线运行模式支持WEBGL平台。
This commit is contained in:
hevinci
2022-04-12 10:53:12 +08:00
parent 46467171ba
commit 9fbce6a726
14 changed files with 506 additions and 320 deletions
+4
View File
@@ -176,8 +176,12 @@ namespace YooAsset
// 初始化下载系统
if (_playMode == EPlayMode.HostPlayMode)
{
#if UNITY_WEBGL
throw new Exception($"{EPlayMode.HostPlayMode} not supports WebGL platform !");
#else
var hostPlayModeParameters = parameters as HostPlayModeParameters;
DownloadSystem.Initialize(hostPlayModeParameters.BreakpointResumeFileSize);
#endif
}
// 初始化资源系统