Advertisement
Munchy2007

Untitled

Feb 24th, 2016
4,648
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.22 KB | None | 0 0
  1.     void OnPlayerIDChanged(string newValue)
  2.     {
  3.         playerID = newValue;
  4.         name = playerID;
  5.         if(isLocalPlayer) name += " Local";
  6.         var textMesh = labelHolder.Find("Label").GetComponent<TextMesh>();
  7.         textMesh.text = newValue;
  8.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement