From 66304c91ec296f85bcd2023ede2b793a41d7d47d Mon Sep 17 00:00:00 2001 From: hevinci Date: Wed, 12 Oct 2022 18:21:11 +0800 Subject: [PATCH] Update Operation System --- .../Runtime/OperationSystem/AsyncOperationBase.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Assets/YooAsset/Runtime/OperationSystem/AsyncOperationBase.cs b/Assets/YooAsset/Runtime/OperationSystem/AsyncOperationBase.cs index f2cbed6..0a254ff 100644 --- a/Assets/YooAsset/Runtime/OperationSystem/AsyncOperationBase.cs +++ b/Assets/YooAsset/Runtime/OperationSystem/AsyncOperationBase.cs @@ -81,6 +81,14 @@ namespace YooAsset _taskCompletionSource.TrySetResult(null); } + /// + /// 清空完成回调 + /// + protected void ClearCompletedCallback() + { + _callback = null; + } + #region 异步编程相关 bool IEnumerator.MoveNext() {