diff --git a/Scripts/CustomAnimation.cs b/Scripts/CustomAnimation.cs index 29225e1..cede02a 100644 --- a/Scripts/CustomAnimation.cs +++ b/Scripts/CustomAnimation.cs @@ -32,7 +32,7 @@ public CustomAnimation(Action customUpdate, float from = 0, float to = 1. : base((GameObject)null, duration, easingFunction) { this.customUpdate = customUpdate ?? throw new ArgumentNullException(nameof(customUpdate)); - From = from; + From = CurrentValue = from; To = to; } @@ -74,7 +74,7 @@ public CustomAnimation(T target, Action customUpdate, float from = 0, { Target = target; this.customUpdate = customUpdate ?? throw new ArgumentNullException(nameof(customUpdate)); - From = from; + From = CurrentValue = from; To = to; }