public void TickUpdate(float dt) { if (client_peer != null) { //while there is data in the buffer, read it while (client_peer != null && client_peer.HasReceived(out ArraySegment <byte> data)) { ProcessPacket(data); } } ClientUpdate(); Query?.Update(); }