Skip to content

Commit

Permalink
Merge pull request #103 from AnnulusGames/fix-awaiter
Browse files Browse the repository at this point in the history
Fix: await handle not continue when motion canceled
  • Loading branch information
AnnulusGames authored Mar 17, 2024
2 parents 92b96ec + fecfcc4 commit 5af347d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/LitMotion/Assets/LitMotion/Runtime/MotionAwaiter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public void UnsafeOnCompleted(Action continuation)

var callbackData = MotionStorageManager.GetMotionCallbacks(handle);
callbackData.OnCompleteAction += continuation;
callbackData.OnCancelAction += continuation;
MotionStorageManager.SetMotionCallbacks(handle, callbackData);
}
}
Expand Down

0 comments on commit 5af347d

Please sign in to comment.