Skip to content

Commit

Permalink
Merge pull request #836 from craftworkgames/tweener_enchancing2
Browse files Browse the repository at this point in the history
Fix TweenTo
  • Loading branch information
Gandifil committed Jan 22, 2024
2 parents bb8a70c + 4383bb8 commit c4f9b3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cs/MonoGame.Extended.Tweening/Tweener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void Dispose()
activeTween?.Cancel();

AllocationCount++;
var tween = (TTween)Activator.CreateInstance(typeof(TTween), target, duration, delay, member, toValue);
var tween = (TTween)Activator.CreateInstance(typeof(TTween), BindingFlags.Public | BindingFlags.NonPublic, null, new object?[]{target, duration, delay, member, toValue});
_activeTweens.Add(tween);
return tween;
}
Expand Down

0 comments on commit c4f9b3c

Please sign in to comment.