public override void OnStartClient() { base.OnStartClient(); _lobbyPlayerGUI = Instantiate(lobbyPlayerGUIPrefab); _lobbyPlayerGUI.SetLobbyPlayer(this); _lobbyPlayerGUI.SetPlayerName(_playerName); _lobbyPlayerGUI.SetPlayerImageColor(_playerColor); FindObjectOfType <GameLobbyCanvas>().AddLobbyPlayer(_lobbyPlayerGUI); }
public void NameChangedOnServer(string name) { _lobbyPlayerGUI.SetPlayerName(name); }