Esempio n. 1
0
 /// <summary>
 /// Set the easing curve function for the tween
 /// </summary>
 /// <param name="animationCurve">An animation curve that defines the easing function</param>
 /// <returns><InBetween object with the new value set/returns>
 public InBetween <T> Curve(AnimationCurve animationCurve)
 {
     curveFunction = animationCurve.Evaluate;
     return(this);
 }
Esempio n. 2
0
 /// <summary>
 /// Set the easing curve function for the tween
 /// </summary>
 /// <param name="curveFunction">A float => float easing function</param>
 /// <returns>InBetween object with the new value set</returns>
 public InBetween <T> Curve(InBetweenCurves.CurveFunction curveFunction)
 {
     this.curveFunction = curveFunction;
     return(this);
 }