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"; } }
private void UpdatePlaceText() { string place = raceManager.GetAgentPlace(FollowAgent); placeText.text = place; }