idk
This commit is contained in:
@@ -99,7 +99,7 @@ public class GameManager : MonoBehaviour
|
||||
{
|
||||
int checkpointsCollected = player.GetComponent<PlayerController>().checkpointsCollected;
|
||||
carRB = player.GetComponent<Rigidbody>();
|
||||
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())
|
||||
|
||||
Reference in New Issue
Block a user