smoke purpp

This commit is contained in:
ntr committed 2023-08-31 16:55:31 +10:00
1 parent f8e12cf990
commit 9e1a596ebc
9 files changed
+92 -85

No files matched your search

+4 -4
View File
@@ -64,7 +64,7 @@ public class TimingUI : MonoBehaviour {
if (timerSectors == null)
Debug.LogWarning("null timerSectors");
Lap timerPbLap = timing.PB();
Lap timerPbLap = timing.Pb;
if (timerPbLap != null)
timerPb.text = $"{timerPbLap.ToString()}";
@@ -73,7 +73,7 @@ public class TimingUI : MonoBehaviour {
foreach (Sector sector in timing.sectors) {
Label l = timing.sectorTimes
.Where(s => s.Sector == sector.sector)
.Select(s => timing.PBSectorDiff(s).ToLabel())
.Select(s => timing.CompareSector(s).ToLabel())
.DefaultIfEmpty(new Label("-"))
.Single();
@@ -87,11 +87,11 @@ public class TimingUI : MonoBehaviour {
noticeTime.text = lap.ToString();
noticeDiff.Clear();
noticeDiff.Add(timing.PBLapDiff(lap).ToLabel());
noticeDiff.Add(timing.CompareLap(lap).ToLabel());
noticeSectors.Clear();
foreach (SectorTime sector in lap.Sectors) {
Label l = timing.PBSectorDiff(sector).ToLabel();
Label l = timing.CompareSector(sector).ToLabel();
noticeSectors.Add(l);
}
}