Ejemplo n.º 1
0
 public void UpdateUI(int rank, Player racer)
 {
     if (racer == PhotonNetwork.LocalPlayer)
     {
         text.text = RaceHelper.OrdinalString(rank + 1);
     }
 }
Ejemplo n.º 2
0
 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!";
     }
 }
Ejemplo n.º 3
0
 private void SetText()
 {
     rankText.text = RaceHelper.OrdinalString(rank);
     idText.text   = "Player #" + actorNumber;
 }