private void ReceivePacket(NetworkPacketPair pair) { if (ConnectedClients.TryGetValue(pair.ID, out NetworkClient client)) { _NetworkPacketMap.Proccess(client, pair.Packet); } }
private void SendPacket(NetworkPacketPair pair) { if (ConnectedClients.TryGetValue(pair.ID, out NetworkClient client)) { client.Send(pair.Packet); } }