We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9f3221 commit 394d64aCopy full SHA for 394d64a
Runtime/TweenInstance.cs
@@ -149,7 +149,7 @@ internal sealed override void Update() {
149
150
/// <summary>The cancel method will cancel the Tween. When the Tween is cancelled, the OnCancel and OnFinally delegates will be invoked.</summary>
151
public sealed override void Cancel() {
152
- if (!dontInvokeWhenDestroyed && component == null) {
+ if (!dontInvokeWhenDestroyed || component != null) {
153
onCancel?.Invoke(this);
154
onFinally?.Invoke(this);
155
}
0 commit comments