Exemplo 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);
    }
Exemplo n.º 2
0
 public void ColorChangedOnServer(Color color)
 {
     _lobbyPlayerGUI.SetPlayerImageColor(color);
 }