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() {