/// <summary> /// Return the float based on the easing function provided /// </summary> float GetEasingFloat(MoverDetailsEasingType type, float t) { switch (type) { case MoverDetailsEasingType.EaseInOut: return(Easing.Exponential.easeInOut(t)); case MoverDetailsEasingType.EaseIn: return(Easing.Exponential.easeIn(t)); case MoverDetailsEasingType.EaseOut: return(Easing.Exponential.easeInOut(t)); case MoverDetailsEasingType.Linear: return(Easing.Linear.easeInOut(t)); } return(t); }
/// <summary> /// Return the float based on the easing function provided /// </summary> float GetEasingFloat(MoverDetailsEasingType type, float t) { switch (type) { case MoverDetailsEasingType.EaseInOut: return Easing.Exponential.easeInOut(t); case MoverDetailsEasingType.EaseIn: return Easing.Exponential.easeIn(t); case MoverDetailsEasingType.EaseOut: return Easing.Exponential.easeInOut(t); case MoverDetailsEasingType.Linear: return Easing.Linear.easeInOut(t); } return t; }