public void UpdateUI(int rank, Player racer) { if (racer == PhotonNetwork.LocalPlayer) { text.text = RaceHelper.OrdinalString(rank + 1); } }
public void OnRacerFinished(Player racerWhoFinished, int rank) { // We should check if the local client is the one who finished the race if (racerWhoFinished == PhotonNetwork.LocalPlayer) { root.SetActive(true); text.text = RaceHelper.OrdinalString(rank + 1) + " place!"; } }
private void SetText() { rankText.text = RaceHelper.OrdinalString(rank); idText.text = "Player #" + actorNumber; }