L
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user