lap storage working

This commit is contained in:
ntr committed 2023-07-30 22:42:10 +10:00
1 parent db59cd1377
commit c611014b88
2 files changed
+59 -56

No files matched your search

+1 -5
View File
@@ -49,12 +49,8 @@ public class ShipUi : MonoBehaviour {
if (sectors == null)
Debug.LogWarning("null sectors");
// timing not ready yet or smth?
if (timing.lapTimes == null)
return;
timeSheet.Clear();
foreach (Lap lap in timing.lapTimes) {
foreach (Lap lap in LapStorageService.GetPlayerLaps(timing.mapName).Laps) {
Label l = new Label();
l.text = $"{lap}";
timeSheet.Add(l);