This commit is contained in:
magn9775
2024-04-24 11:37:10 +02:00
parent c1a33bbd8c
commit 2e78e93ad0
10 changed files with 924 additions and 71 deletions

View File

@@ -122,13 +122,13 @@ public class PlayerController : MonoBehaviour
}
private void Update() {
Transform currentCheckpoint = checkpoints[checkpointsCollected].transform;
float checkpintDistance = distanceToCheckpoint(currentCheckpoint);
// Transform currentCheckpoint = checkpoints[checkpointsCollected].transform;
// float checkpintDistance = distanceToCheckpoint(currentCheckpoint);
if (checkpintDistance < 0.1f)
{
checkpointsCollected += 1;
}
// if (checkpintDistance < 0.1f)
// {
// checkpointsCollected += 1;
// }
}
private void OnCollisionEnter(Collision other) {