Exemple #1
0
 public float RandomValue()
 {
     return(Interpolation.CurveClamped(curve, outputRange, Random.value));
 }
Exemple #2
0
 public float Evaluate(float t)
 {
     return(Interpolation.CurveClamped(curve, outputRange, MathUtils.PercentBetween(t, inputRange)));
 }