Driving UI

This commit is contained in:
2024-04-26 12:59:34 +02:00
parent 8405f137d6
commit 4eee1a278b
5 changed files with 473 additions and 21 deletions

View File

@@ -4,29 +4,28 @@ using UnityEngine;
public class LapTimer : MonoBehaviour
{
public float time = 0;
private bool startTime = false;
// public List<float> times;
// private bool startTime = false;
private void OnTriggerEnter(Collider other) {
// private void OnTriggerEnter(Collider other) {
if (startTime)
{
startTime = false;
print(time);
} else {
startTime = true;
time=0;
}
// if (startTime)
// {
// startTime = false;
// print(time);
// } else {
// startTime = true;
// }
}
// }
void FixedUpdate()
{
// void FixedUpdate()
// {
time +=1;
// time +=1;
}
// }
}