Esempio n. 1
0
 void CarroAnim()
 {
     playerAnim.updateCar = true;
     if (playerMovement.carroVelocity.y < -1 && controller.collisions.below == false)
     {
         nextAnimState02 = AnimStatePowerUp.CarroDown;
     }
     else if (playerMovement.carroVelocity.y > 1 && controller.collisions.below == false)
     {
         nextAnimState02 = AnimStatePowerUp.CarroUp;
     }
     else
     {
         nextAnimState02 = AnimStatePowerUp.CarroWalk;
     }
 }
Esempio n. 2
0
 void PipaAnim()
 {
     nextAnimState02 = AnimStatePowerUp.Pipa;
 }