From c35e22fbd7719da828f9d8584153d92a352e35a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Thu, 22 Aug 2024 15:18:57 +0800 Subject: [PATCH] feat : Gaem async operation add Abort method. --- .../Runtime/OperationSystem/GameAsyncOperation.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Assets/YooAsset/Runtime/OperationSystem/GameAsyncOperation.cs b/Assets/YooAsset/Runtime/OperationSystem/GameAsyncOperation.cs index 12b6570..279ae46 100644 --- a/Assets/YooAsset/Runtime/OperationSystem/GameAsyncOperation.cs +++ b/Assets/YooAsset/Runtime/OperationSystem/GameAsyncOperation.cs @@ -47,5 +47,13 @@ namespace YooAsset { return OperationSystem.IsBusy; } + + /// + /// 终止异步操作 + /// + protected void Abort() + { + SetAbort(); + } } } \ No newline at end of file