mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-23 17:20:12 +00:00
Update patch system
下载器增加取消方法。
This commit is contained in:
@@ -226,6 +226,19 @@ namespace YooAsset
|
|||||||
{
|
{
|
||||||
_isPause = false;
|
_isPause = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 取消下载
|
||||||
|
/// </summary>
|
||||||
|
public void CancelDownload()
|
||||||
|
{
|
||||||
|
if (_steps != ESteps.Done)
|
||||||
|
{
|
||||||
|
_steps = ESteps.Done;
|
||||||
|
Status = EOperationStatus.Failed;
|
||||||
|
Error = "User cancel.";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public sealed class PackageDownloaderOperation : DownloaderOperation
|
public sealed class PackageDownloaderOperation : DownloaderOperation
|
||||||
|
|||||||
Reference in New Issue
Block a user