stop clearing bug
This commit is contained in:
1 parent
93a6f22553
commit
f7bdb5df1d
1 file changed
+5
-1
@@ -23,6 +23,8 @@ public class Timing: MonoBehaviour {
|
|||||||
double sectorStart;
|
double sectorStart;
|
||||||
double lapStart;
|
double lapStart;
|
||||||
|
|
||||||
|
IEnumerator noticeLifecycle;
|
||||||
|
|
||||||
void Awake() {
|
void Awake() {
|
||||||
ui = GetComponent<TimingUI>();
|
ui = GetComponent<TimingUI>();
|
||||||
sectorTimes = new List<SectorTime>();
|
sectorTimes = new List<SectorTime>();
|
||||||
@@ -114,7 +116,9 @@ public class Timing: MonoBehaviour {
|
|||||||
Debug.Log($"EndLap {l}");
|
Debug.Log($"EndLap {l}");
|
||||||
|
|
||||||
// have to show this before we persist the lap in case it is the pb
|
// have to show this before we persist the lap in case it is the pb
|
||||||
StartCoroutine(RecentLapLifecycle(l));
|
if (noticeLifecycle != null) StopCoroutine(noticeLifecycle);
|
||||||
|
noticeLifecycle = RecentLapLifecycle(l);
|
||||||
|
StartCoroutine(noticeLifecycle);
|
||||||
|
|
||||||
LapStorageService.PersistLap(l);
|
LapStorageService.PersistLap(l);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user