Esempio 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);
    }
Esempio n. 2
0
 public void NameChangedOnServer(string name)
 {
     _lobbyPlayerGUI.SetPlayerName(name);
 }