Sending players names across network
Options
I am having a issue where the players have been Instantiated and all is working good.. .just now I want it so players names are sent to each other's spawn so everybody can see each others names on their and others objects...
I am sure there must be a easy way of doing this... or perhaps not easy but logical...
my code doesn't work.. for players that are networked I just get the Instantiated value that is inside the prefab.
edit:
ohhh all good.. .seems I wasn't ever calling the UpdatePlayer method from a non isMine check
Thanks alot!!
I am sure there must be a easy way of doing this... or perhaps not easy but logical...
my code doesn't work.. for players that are networked I just get the Instantiated value that is inside the prefab.
public void UpdatePlayer(){ if (Manager.gs.isShowingNames == true) { uiPlayerName.text = "" +PhotonNetwork.playerName.ToString() ; } else { uiPlayerName.text = "" ; } if (Manager.gs.isShowingMass == true) { uiPlayerStatus.text = "" +body.mass ; } else { uiPlayerStatus.text = "" ; } } }
edit:
ohhh all good.. .seems I wasn't ever calling the UpdatePlayer method from a non isMine check
Thanks alot!!
0