Beispiel #1
0
        IEnumerator WatchRaceStatus()
        {
            ResetHud();

            totalLapsText.text = RaceManager.GetTotalLaps().ToString();

            while (RaceManager.IsRaceInProgress() == true)
            {
                if (lapCount != RaceManager.GetLapCount())
                {
                    AddLapRow();

                    lapCount = RaceManager.GetLapCount();
                }

                UpdateElapsedTime(RaceManager.GetElapsedSec());
                UpdateLapElapsedTime(RaceManager.GetLapElapsedSec());

                yield return(null);
            }
        }