menu fixes
This commit is contained in:
1 parent
268608a459
commit
45fc3026b4
2 files changed
+6
-3
No files matched your search
@@ -28,7 +28,7 @@ public class ShipUi : MonoBehaviour {
|
||||
}
|
||||
|
||||
void FixedUpdate() {
|
||||
timer.text = $"{TimeSpan.FromSeconds(timing.lapTime):g}";
|
||||
timer.text = $"{TimeSpan.FromSeconds(timing.lapTime):m\\:ss\\.fff}";
|
||||
speed.text = $"{ship.Speed():0} u/s";
|
||||
|
||||
// clearly this is not ideal but idk atm
|
||||
@@ -39,6 +39,10 @@ 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) {
|
||||
Label l = new Label();
|
||||
|
||||
Reference in new issue
Block a user