Update YooAssets.cs
parent
abdf2b859e
commit
991fa5b250
|
@ -96,6 +96,11 @@ namespace YooAsset
|
||||||
/// 备用的资源服务器下载地址
|
/// 备用的资源服务器下载地址
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string FallbackHostServer;
|
public string FallbackHostServer;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 启用断点续传功能的文件大小
|
||||||
|
/// </summary>
|
||||||
|
public int BreakpointResumeFileSize = int.MaxValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -168,6 +173,13 @@ namespace YooAsset
|
||||||
// 初始化异步操作系统
|
// 初始化异步操作系统
|
||||||
OperationSystem.Initialize(parameters.OperationSystemMaxTimeSlice);
|
OperationSystem.Initialize(parameters.OperationSystemMaxTimeSlice);
|
||||||
|
|
||||||
|
// 初始化下载系统
|
||||||
|
if (_playMode == EPlayMode.HostPlayMode)
|
||||||
|
{
|
||||||
|
var hostPlayModeParameters = parameters as HostPlayModeParameters;
|
||||||
|
DownloadSystem.Initialize(hostPlayModeParameters.BreakpointResumeFileSize);
|
||||||
|
}
|
||||||
|
|
||||||
// 初始化资源系统
|
// 初始化资源系统
|
||||||
if (_playMode == EPlayMode.EditorPlayMode)
|
if (_playMode == EPlayMode.EditorPlayMode)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue