Merge branch 'master' of ooftooft.net:Racesm

# Conflicts:
#	Assets/Imported Assets/PolygonCity/Prefabs/Characters/Character_BusinessMan_Shirt_01.prefab
#	Assets/ML-Agents/Timers/Racetrack mini_timers.json

Signed-off-by: Ciakon <noahkarottki@gmail.com>
This commit is contained in:
2024-04-24 11:39:04 +02:00
10 changed files with 928 additions and 67 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) {