Exemple #1
0
 public float Update(float amount)
 {
     if (amount < 0.5f)
     {
         return(easeIn.Update(amount * 2) * 0.5f);
     }
     return(easeOut.Update(amount * 2 - 1) * 0.5f + 0.5f);
 }
Exemple #2
0
 public float Update(float amount)
 {
     return(1 - easeOut.Update(1 - amount));
 }