// process incoming messages. should be called before updating the world.
 public void TickIncoming()
 {
     // recv on socket first, then process incoming
     // (even if we didn't receive anything. need to tick ping etc.)
     // (connection is null if not active)
     connection?.RawReceive();
     connection?.TickIncoming();
 }
Exemple #2
0
 public void Tick()
 {
     // tick client connection
     if (connection != null)
     {
         // recv on socket first
         connection.RawReceive();
         // then update
         connection.Tick();
     }
 }