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

master
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()
{
originalUpdateAction?.Invoke();
if (!cancellationToken.IsCancellationRequested)
{
originalUpdateAction?.Invoke();
return;
}