StopRace() public method

public StopRace ( ) : void
return void
Example #1
0
 void ResetFlightPanel()
 {
     GameManager.StopGame();
     RaceManager.StopRace();
     HideRaceInfoHud();
     CountdownTimerHud.Hide();
     HideArmedIndicator();
     raceButton.GetComponentInChildren <Text>().text = Constants.StartRace;
 }
Example #2
0
        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());
            }
        }