awake todo
This commit is contained in:
1 parent
2980cb9e4e
commit
361e76cc43
3 files changed
+16
-10
No files matched your search
@@ -48,7 +48,7 @@ public class TimingUI : MonoBehaviour {
|
||||
}
|
||||
|
||||
void FixedUpdate() {
|
||||
if (timer == null) {
|
||||
if (timer == null || timing == null) {
|
||||
Debug.LogWarning("no timer");
|
||||
Init();
|
||||
return;
|
||||
@@ -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()}";
|
||||
|
||||
@@ -85,11 +85,7 @@ public class TimingUI : MonoBehaviour {
|
||||
timer.AddToClassList("hidden");
|
||||
notice.RemoveFromClassList("hidden");
|
||||
|
||||
// fine
|
||||
noticeTime.text = lap.ToString();
|
||||
|
||||
// should show the diff to the PB
|
||||
// or - if there is only 1 lap
|
||||
noticeDiff.Clear();
|
||||
noticeDiff.Add(timing.PBLapDiff(lap).ToLabel());
|
||||
|
||||
|
||||
Reference in new issue
Block a user