Fix a problem in dotween where an extra update would run after canceling
parent
d210e3d76a
commit
716402a180
|
@ -257,10 +257,9 @@ namespace Cysharp.Threading.Tasks
|
|||
|
||||
void OnUpdate()
|
||||
{
|
||||
originalUpdateAction?.Invoke();
|
||||
|
||||
if (!cancellationToken.IsCancellationRequested)
|
||||
{
|
||||
originalUpdateAction?.Invoke();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue