mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-26 10:40:14 +00:00
update download system
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user