arthurdiniz0_outer-math/OuterMath Unity Project/Assets/PlayMaker/Actions/Tween/TweenFloat.cs
// (c) Copyright HutongGames, all rights reserved.
// See also: EasingFunctionLicense.txt

namespace HutongGames.PlayMaker.Actions
{
    [ActionCategory(ActionCategory.Tween)]
    [Tooltip("Tween a float variable using a custom easing function.")]
    public class TweenFloat : TweenVariableBase<FsmFloat>
    {
        protected override object GetOffsetValue(object value, object offset)
        {
            return (float) value + (float) offset;
        }

        protected override void DoTween()
        {
            variable.Value = easingFunction((float) StartValue, (float) EndValue, normalizedTime);
        }
    }

}
