mirror of https://github.com/Cysharp/UniTask
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()
|
void OnUpdate()
|
||||||
{
|
{
|
||||||
originalUpdateAction?.Invoke();
|
|
||||||
|
|
||||||
if (!cancellationToken.IsCancellationRequested)
|
if (!cancellationToken.IsCancellationRequested)
|
||||||
{
|
{
|
||||||
|
originalUpdateAction?.Invoke();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue