Ejemplo n.º 1
0
 private void FixedUpdate()
 {
     if (TimeCounter.startTimer <= GameBehaviour.startCounter)
     {
         return;
     }
     if ((player.IsRotating() && player.CanMoveOnRotation()) || !player.IsRotating())
     {
         UpdateMove();
         if (!player.HasNitro())                 /*/ Checks if player has nitro, if no, player can't exceed maximum velocity. /*/
         {
             rb.velocity = OutOfVelocityRange(); // If player velocity is too high, set it to maximum one
         }
     }
 }