Update DownloadSystem

下载错误提示增加HTTP Response Code
This commit is contained in:
hevinci
2022-10-25 14:33:21 +08:00
parent 0ecb37419b
commit 1f3e55ebea
2 changed files with 7 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ namespace YooAsset
protected string _requestURL;
protected string _lastError = string.Empty;
protected long _lastCode = 0;
protected float _downloadProgress = 0f;
protected ulong _downloadedBytes = 0;
@@ -119,7 +120,7 @@ namespace YooAsset
/// </summary>
public string GetLastError()
{
return $"Failed to download : {_requestURL} Error : {_lastError}";
return $"Failed to download : {_requestURL} Error : {_lastError} Code : {_lastCode}";
}
}
}