pull/370/head
何冠峰 2024-08-30 18:45:58 +08:00
parent 6a17335231
commit 3f027e5456
1 changed files with 7 additions and 5 deletions

View File

@ -29,9 +29,7 @@ namespace YooAsset
public DownloadStatus GetDownloadStatus()
{
if (IsValidWithWarning == false)
{
return DownloadStatus.CreateDefaultStatus();
}
return Provider.GetDownloadStatus();
}
@ -44,7 +42,6 @@ namespace YooAsset
{
if (IsValidWithWarning == false)
return EOperationStatus.None;
return Provider.Status;
}
}
@ -83,7 +80,7 @@ namespace YooAsset
get
{
if (IsValidWithWarning == false)
return false;
return true;
return Provider.IsDone;
}
}
@ -141,7 +138,12 @@ namespace YooAsset
/// </summary>
public System.Threading.Tasks.Task Task
{
get { return Provider.Task; }
get
{
if (IsValidWithWarning == false)
return null;
return Provider.Task;
}
}
// 协程相关