mirror of https://github.com/tuyoogame/YooAsset
fix #205
parent
2626cb6750
commit
6dd1f43445
|
@ -17,6 +17,7 @@ namespace YooAsset
|
||||||
public string RequestNetError { private set; get; }
|
public string RequestNetError { private set; get; }
|
||||||
public long RequestHttpCode { private set; get; }
|
public long RequestHttpCode { private set; get; }
|
||||||
|
|
||||||
|
public AssetBundleWebRequest() { }
|
||||||
public void Create(string requestURL, BundleInfo bundleInfo, params object[] args)
|
public void Create(string requestURL, BundleInfo bundleInfo, params object[] args)
|
||||||
{
|
{
|
||||||
if (Status != ERequestStatus.None)
|
if (Status != ERequestStatus.None)
|
||||||
|
|
|
@ -13,6 +13,7 @@ namespace YooAsset
|
||||||
public string RequestNetError { private set; get; }
|
public string RequestNetError { private set; get; }
|
||||||
public long RequestHttpCode { private set; get; }
|
public long RequestHttpCode { private set; get; }
|
||||||
|
|
||||||
|
public FileGeneralRequest() { }
|
||||||
public void Create(string requestURL, BundleInfo bundleInfo, params object[] args)
|
public void Create(string requestURL, BundleInfo bundleInfo, params object[] args)
|
||||||
{
|
{
|
||||||
if (Status != ERequestStatus.None)
|
if (Status != ERequestStatus.None)
|
||||||
|
|
|
@ -8,7 +8,7 @@ namespace YooAsset
|
||||||
private string _tempFilePath;
|
private string _tempFilePath;
|
||||||
private UnityWebRequest _webRequest;
|
private UnityWebRequest _webRequest;
|
||||||
private DownloadHandlerFileRange _downloadHandle;
|
private DownloadHandlerFileRange _downloadHandle;
|
||||||
private ulong _fileOriginLength;
|
private ulong _fileOriginLength = 0;
|
||||||
|
|
||||||
public ERequestStatus Status { private set; get; } = ERequestStatus.None;
|
public ERequestStatus Status { private set; get; } = ERequestStatus.None;
|
||||||
public float DownloadProgress { private set; get; }
|
public float DownloadProgress { private set; get; }
|
||||||
|
@ -16,6 +16,7 @@ namespace YooAsset
|
||||||
public string RequestNetError { private set; get; }
|
public string RequestNetError { private set; get; }
|
||||||
public long RequestHttpCode { private set; get; }
|
public long RequestHttpCode { private set; get; }
|
||||||
|
|
||||||
|
public FileResumeRequest() { }
|
||||||
public void Create(string requestURL, BundleInfo bundleInfo, params object[] args)
|
public void Create(string requestURL, BundleInfo bundleInfo, params object[] args)
|
||||||
{
|
{
|
||||||
if (Status != ERequestStatus.None)
|
if (Status != ERequestStatus.None)
|
||||||
|
|
Loading…
Reference in New Issue