Ejemplo n.º 1
0
    public override void OnStartClient()
    {
        base.OnStartClient();

        _lobbyPlayerGUI = Instantiate(lobbyPlayerGUIPrefab);
        _lobbyPlayerGUI.SetLobbyPlayer(this);
        _lobbyPlayerGUI.SetPlayerName(_playerName);
        _lobbyPlayerGUI.SetPlayerImageColor(_playerColor);

        FindObjectOfType <GameLobbyCanvas>().AddLobbyPlayer(_lobbyPlayerGUI);
    }
Ejemplo n.º 2
0
 public void NameChangedOnServer(string name)
 {
     _lobbyPlayerGUI.SetPlayerName(name);
 }