float GetEaseRatio(float ratio) { if (CustomEase != null) { return(CustomEase.Evaluate(ratio)); } else { return(EaseInOut.Evaluate(EaseType, ratio)); } }
/// <summary>Sets the ease of the tween. /// <para>If applied to Sequences eases the whole sequence animation</para></summary> public static T SetEase <T>(this T t, CustomEase customEase) where T : Tween { customEase.ApplyTo(t); return(t); }
/// <summary>Sets the ease of the tween using a custom ease function. /// <para>If applied to Sequences eases the whole sequence animation</para></summary> public static TweenParams SetEase(this TweenParams tweenParams, CustomEase customEase) { customEase.ApplyTo(tweenParams); return(tweenParams); }