Beispiel #1
0
 void HandleUpdateRotor(UpdateRotorMessage message, ObjectMessageMetadata metadata)
 {
     _serverRotation  = message.Rotation;
     _serverTimestamp = _clock.CurrentTime - metadata.Latency;
 }
Beispiel #2
0
 void HandleDirectionUpdate(WhispMessage.UpdateDirection message, ObjectMessageMetadata metadata)
 {
     _serverTimestamp = _clock.CurrentTime - metadata.Latency;
     _serverPosition  = message.Position;
     _direction       = message.Direction;
 }