public void SetPlayerData(string playerName) { _connectionData.playerName = playerName; Net_PlayerData pd = new Net_PlayerData(_playerId, playerName); SendToServer(pd); }
void OnSetPlayerData(int connectionId, int chanelId, int recHostId, Net_PlayerData msg) { Debug.Log(string.Format("Set Player Data {0}", msg.playerName)); _playersConnectionData[msg.playerId].playerName = msg.playerName; UpdateLobby(); }