示例#1
0
    public void SetPlayerData(string playerName)
    {
        _connectionData.playerName = playerName;
        Net_PlayerData pd = new Net_PlayerData(_playerId, playerName);

        SendToServer(pd);
    }
示例#2
0
 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();
 }