move timing around

This commit is contained in:
ntr committed 2023-08-01 22:45:20 +10:00
1 parent 69a97e3c76
commit 68682e98da
7 files changed
+182 -227

No files matched your search

+1 -3
View File
@@ -10,7 +10,6 @@ using UnityEditor;
using UnityEngine.SceneManagement;
public class Timing: MonoBehaviour {
[SerializeField]
TimingUI ui;
public List<SectorTime> sectorTimes;
@@ -20,12 +19,12 @@ public class Timing: MonoBehaviour {
public double sectorTime;
public double lapTime;
public Sector[] sectors;
public Lap recentLap = null;
double sectorStart;
double lapStart;
void Awake() {
ui = GetComponent<TimingUI>();
sectorTimes = new List<SectorTime>();
sectorStart = 0.0;
sectorTime = 0.0;
@@ -37,7 +36,6 @@ public class Timing: MonoBehaviour {
Debug.Log("Track Sector Count - " + sectors.Length);
LapStorageService.GetPlayerLaps(mapName);
recentLap = null;
}
void Update() {