/// <summary>
/// Obtains the desired type of animation curve with a duration of 1 (starting on 0), the start value being 0 and the end value being 1
/// </summary>
/// <param name="curve">THe desired type of curve.</param>
/// <returns>The desired type of animation curve with a duration of 1 (starting on 0), the start value being 0 and the end value being 1</returns>
public static AnimationCurve GetCurve(Curve curve)
{
switch (curve)
{
case Curve.Linear:
return(AnimationCurve.Linear(0, 0, 1, 1));
case Curve.EaseInOut:
return(AnimationCurve.EaseInOut(0, 0, 1, 1));
default:
throw new ArgumentOutOfRangeException(nameof(curve), curve, null);
}
}