예제 #1
0
 public static float BounceInOut(float p)
 {
     if (p < 0.5f)
     {
         return(0.5f * BounceEaseInCurve.BounceIn(p * 2));
     }
     else
     {
         return(0.5f * BounceEaseOutCurve.BounceOut(p * 2 - 1) + 0.5f);
     }
 }
예제 #2
0
 public static float BounceIn(float p)
 {
     return(1 - BounceEaseOutCurve.BounceOut(1 - p));
 }