feat(DownloadSystem):支持自定义下载请求

This commit is contained in:
huanggongming
2023-02-24 12:18:18 +08:00
parent 0232e5adec
commit eb16ba8365
7 changed files with 54 additions and 5 deletions
@@ -32,6 +32,15 @@ namespace YooAsset
/// </summary>
public static List<long> ClearFileResponseCodes { set; get; }
/// <summary>
/// 自定义下载请求
/// </summary>
/// <param name="requestDelegate"></param>
public static void SetRequestDelegate(DownloadRequestDelegate requestDelegate)
{
DownloadRequestUtil.SetRequestDelegate(requestDelegate);
}
/// <summary>
/// 更新所有下载器
/// </summary>