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