Example #1
0
 float GetEaseRatio(float ratio)
 {
     if (CustomEase != null)
     {
         return(CustomEase.Evaluate(ratio));
     }
     else
     {
         return(EaseInOut.Evaluate(EaseType, ratio));
     }
 }
Example #2
0
 /// <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);
 }
Example #3
0
 /// <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);
 }