public static float EaseEvaluate(float time, int mode) { if (time >= 1.0) { return(1.0f); } else if (time <= 0.0) { return(0.0f); } switch (mode) { case 1: return(T1.Evaluate(time)); case 2: return(T2.Evaluate(time)); case 3: return(T3.Evaluate(time)); case 4: return(T4.Evaluate(time)); case 5: return(T5.Evaluate(time)); case 6: return(T6.Evaluate(time)); case 7: return(T7.Evaluate(time)); case 8: return(T8.Evaluate(time)); case 9: return(T9.Evaluate(time)); case 10: return(T10.Evaluate(time)); case 11: return(T11.Evaluate(time)); case 12: return(T12.Evaluate(time)); default: return(time); } }