private void OnEnable()
 {
     if (GameManager.Instance != null &&
         GameManager.Instance.GameState == GameState.Gameover)
     {
         // Gets the place and updates the text
         string place = raceManager.GetAgentPlace(raceManager.FollowAgent);
         this.placeText.text = place + " Place";
     }
 }
Esempio n. 2
0
        private void UpdatePlaceText()
        {
            string place = raceManager.GetAgentPlace(FollowAgent);

            placeText.text = place;
        }