void ResetFlightPanel() { GameManager.StopGame(); RaceManager.StopRace(); HideRaceInfoHud(); CountdownTimerHud.Hide(); HideArmedIndicator(); raceButton.GetComponentInChildren <Text>().text = Constants.StartRace; }
public void Race() { if (RaceManager.IsRaceInProgress() == true) { RaceManager.StopRace(); } else if (RaceManager.IsGetReady() == false) { raceButton.GetComponentInChildren <Text>().text = Constants.GetReadyToRace; RaceManager.GetReadyToRace(); CountdownTimerHud.Show(); closeRaceInfoHudButton.gameObject.SetActive(false); raceInfoHud.gameObject.SetActive(true); raceInfoHud.StartWatchRaceStatus(); StartCoroutine(WatchRaceStatus()); } }