update operation system

This commit is contained in:
hevinci
2023-09-25 16:08:17 +08:00
parent 95894f92db
commit 8fe2fa7bc6
2 changed files with 16 additions and 33 deletions

View File

@@ -90,15 +90,14 @@ namespace YooAsset
Status = EOperationStatus.Failed;
Error = "user abort";
YooLogger.Warning($"Async operaiton has been abort : {this.GetType().Name}");
SetFinish();
}
}
internal void SetFinish()
{
Progress = 1f;
_callback?.Invoke(this);
if (_taskCompletionSource != null)
_taskCompletionSource.TrySetResult(null);
_callback?.Invoke(this);
}
internal void SetStart()
{