update download system

This commit is contained in:
hevinci
2023-02-24 19:45:05 +08:00
parent a5e24be5d4
commit bcf6372602
7 changed files with 40 additions and 54 deletions

View File

@@ -168,15 +168,6 @@ namespace YooAsset
DownloadSystem.BreakpointResumeFileSize = fileBytes;
}
/// <summary>
/// 自定义下载请求
/// </summary>
/// <param name="requestDelegate"></param>
public static void SetDownloadSystemUnityWebRequest(DownloadRequestDelegate requestDelegate)
{
DownloadSystem.SetRequestDelegate(requestDelegate);
}
/// <summary>
/// 设置下载系统参数下载失败后清理文件的HTTP错误码
/// </summary>
@@ -193,6 +184,14 @@ namespace YooAsset
DownloadSystem.CertificateHandlerInstance = instance;
}
/// <summary>
/// 设置下载系统参数,自定义下载请求
/// </summary>
public static void SetDownloadSystemUnityWebRequest(DownloadRequestDelegate requestDelegate)
{
DownloadSystem.RequestDelegate = requestDelegate;
}
/// <summary>
/// 设置异步系统参数,每帧执行消耗的最大时间切片(单位:毫秒)
/// </summary>