From 97fc65e66da75dabba71b2e034bb217b9c633a73 Mon Sep 17 00:00:00 2001 From: hevinci Date: Tue, 18 Oct 2022 12:16:46 +0800 Subject: [PATCH] Update OperationSystem MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加新方法GameAsyncOperation.IsBusy() --- .../Runtime/OperationSystem/GameAsyncOperation.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Assets/YooAsset/Runtime/OperationSystem/GameAsyncOperation.cs b/Assets/YooAsset/Runtime/OperationSystem/GameAsyncOperation.cs index 813a4d6..e236e99 100644 --- a/Assets/YooAsset/Runtime/OperationSystem/GameAsyncOperation.cs +++ b/Assets/YooAsset/Runtime/OperationSystem/GameAsyncOperation.cs @@ -12,7 +12,22 @@ namespace YooAsset OnUpdate(); } + /// + /// 异步操作开始 + /// protected abstract void OnStart(); + + /// + /// 异步操作更新 + /// protected abstract void OnUpdate(); + + /// + /// 异步操作系统是否繁忙 + /// + protected bool IsBusy() + { + return OperationSystem.IsBusy; + } } } \ No newline at end of file