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
@@ -39,7 +39,7 @@ namespace YooAsset
_latestDownloadBytes = 0;
_latestDownloadRealtime = Time.realtimeSinceStartup;
_webRequest = DownloadRequestUtil.NewRequest(URL);
_webRequest = DownloadSystem.NewRequest(URL);
DownloadHandlerFile handler = new DownloadHandlerFile(savePath);
handler.removeFileOnAbort = true;
_webRequest.downloadHandler = handler;