IEnumerator WatchRaceStatus() { //Debug.Log("UiManager.WatchRaceStatus"); while (RaceManager.IsRaceInProgress() == false) { yield return(null); } CountdownTimerHud.Hide(); raceButton.GetComponentInChildren <Text>().text = Constants.StopRace; raceInfoHud.StartWatchRaceStatus(); while (RaceManager.IsRaceInProgress() == true) { yield return(new WaitForSeconds(0.1f)); } if (RaceManager.IsReady()) { closeRaceInfoHudButton.gameObject.SetActive(true); } raceButton.GetComponentInChildren <Text>().text = Constants.StartRace; }
void ResetFlightPanel() { GameManager.StopGame(); RaceManager.StopRace(); HideRaceInfoHud(); CountdownTimerHud.Hide(); HideArmedIndicator(); raceButton.GetComponentInChildren <Text>().text = Constants.StartRace; }