From 716402a1800b5d9988fde8a05b4f00ef00916d4f Mon Sep 17 00:00:00 2001 From: hadashiA Date: Thu, 31 Aug 2023 19:21:43 +0900 Subject: [PATCH] Fix a problem in dotween where an extra update would run after canceling --- .../UniTask/Runtime/External/DOTween/DOTweenAsyncExtensions.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/UniTask/Assets/Plugins/UniTask/Runtime/External/DOTween/DOTweenAsyncExtensions.cs b/src/UniTask/Assets/Plugins/UniTask/Runtime/External/DOTween/DOTweenAsyncExtensions.cs index 80ae27c..1f7829b 100644 --- a/src/UniTask/Assets/Plugins/UniTask/Runtime/External/DOTween/DOTweenAsyncExtensions.cs +++ b/src/UniTask/Assets/Plugins/UniTask/Runtime/External/DOTween/DOTweenAsyncExtensions.cs @@ -257,10 +257,9 @@ namespace Cysharp.Threading.Tasks void OnUpdate() { - originalUpdateAction?.Invoke(); - if (!cancellationToken.IsCancellationRequested) { + originalUpdateAction?.Invoke(); return; }