public void TryReadPacket(byte[] data, int dataLength) { Packet_Server packet = new Packet_Server(); Packet_ServerSerializer.DeserializeBuffer(data, dataLength, packet); ProcessInBackground(packet); ProcessPacketTask task = new ProcessPacketTask(); task.game = game; task.packet_ = packet; game.QueueActionCommit(task); game.LastReceivedMilliseconds = game.currentTimeMilliseconds; //return lengthPrefixLength + packetLength; }