protected void C2G_TcpMessage(IIncommingMessage reader) { var player = reader.Peer?.GetExtension <Player>(); if (player == null) { reader.Peer.Disconnect(""); Debug.Log("C2G_TcpMessage: Error msg unknown user peerId = " + reader.Peer.Id); return; } var deserializer = reader.GetData(); if (deserializer == null) { return; } player.Game.OnRecvMsg(player, deserializer); }