private void sendPosition() { Position position = new Position(GameEnvironment.Instance.LocalPlayer.getCharacter().body.position, GameEnvironment.Instance.LocalPlayer.getCharacter().getRotation()); communication.SendReliable(position, NetFrame.FrameType.position); }
internal void UpdatePosition(Player player, Position position) { updatedPositions.Enqueue(new KeyValuePair<Player, Position>(player, position)); }