diff --git a/Assets/Scripts/GameManager.cs b/Assets/Scripts/GameManager.cs index 07adcda..90352f1 100644 --- a/Assets/Scripts/GameManager.cs +++ b/Assets/Scripts/GameManager.cs @@ -99,7 +99,7 @@ public class GameManager : MonoBehaviour { int checkpointsCollected = player.GetComponent().checkpointsCollected; carRB = player.GetComponent(); - var carVel = (Mathf.Abs(carRB.velocity.x) + Mathf.Abs(carRB.velocity.y) + Mathf.Abs(carRB.velocity.z))*5; + var carVel = Mathf.Round((Mathf.Abs(carRB.velocity.x) + Mathf.Abs(carRB.velocity.y) + Mathf.Abs(carRB.velocity.z))*6); speedometer.SetText(carVel.ToString()); if (checkpointsCollected == checkpoints.Count())