Fix a problem in dotween where an extra update would run after canceling

This commit is contained in:
hadashiA
2023-08-31 19:21:43 +09:00
parent d210e3d76a
commit 716402a180

View File

@@ -257,10 +257,9 @@ namespace Cysharp.Threading.Tasks
void OnUpdate()
{
originalUpdateAction?.Invoke();
if (!cancellationToken.IsCancellationRequested)
{
originalUpdateAction?.Invoke();
return;
}