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

pull/485/head
hadashiA 2023-08-31 19:21:43 +09:00
parent d210e3d76a
commit 716402a180
1 changed files with 1 additions and 2 deletions

View File

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