修复更新资源清单错误计算超时时间的问题。
pull/62/head
hevinci 2022-12-29 14:23:16 +08:00
parent 61f6d480ae
commit cdc5bcd31f
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@ namespace YooAsset
{ {
URL = url; URL = url;
_timeout = timeout; _timeout = timeout;
_latestDownloadBytes = 0;
_latestDownloadRealtime = Time.realtimeSinceStartup;
_webRequest = new UnityWebRequest(URL, UnityWebRequest.kHttpVerbGET); _webRequest = new UnityWebRequest(URL, UnityWebRequest.kHttpVerbGET);
DownloadHandlerFile handler = new DownloadHandlerFile(savePath); DownloadHandlerFile handler = new DownloadHandlerFile(savePath);
handler.removeFileOnAbort = true; handler.removeFileOnAbort = true;