checkpiint better

This commit is contained in:
2024-04-26 12:33:18 +02:00
parent bfa42a83c3
commit 8405f137d6

View File

@@ -128,7 +128,7 @@ public class PlayerController : MonoBehaviour
float checkpintDistance = distanceToCheckpoint(currentCheckpoint); float checkpintDistance = distanceToCheckpoint(currentCheckpoint);
if (checkpintDistance < 0.1f) if (checkpintDistance < 0.2f)
{ {
checkpointsCollected += 1; checkpointsCollected += 1;
currentCheckpoint.GetComponent<Checkpoint>().isVisible = false; currentCheckpoint.GetComponent<Checkpoint>().isVisible = false;