diff --git a/Assets/BossRoom/Scripts/Shared/Game/Entity/NetworkCharacterState.cs b/Assets/BossRoom/Scripts/Shared/Game/Entity/NetworkCharacterState.cs index 4e20cc6de..23a096f6b 100644 --- a/Assets/BossRoom/Scripts/Shared/Game/Entity/NetworkCharacterState.cs +++ b/Assets/BossRoom/Scripts/Shared/Game/Entity/NetworkCharacterState.cs @@ -45,12 +45,14 @@ public void InitNetworkPositionAndRotationY(Vector3 initPosition, float initRota /// /// The networked position of this Character. This reflects the authoritative position on the server. /// - public NetworkVariableVector3 NetworkPosition { get; } = new NetworkVariableVector3(); + public NetworkVariableVector3 NetworkPosition { get; } = new NetworkVariableVector3( + new NetworkVariableSettings() { SendNetworkChannel = MLAPI.Transports.NetworkChannel.PositionUpdate }); /// /// The networked rotation of this Character. This reflects the authoritative rotation on the server. /// - public NetworkVariableFloat NetworkRotationY { get; } = new NetworkVariableFloat(); + public NetworkVariableFloat NetworkRotationY { get; } = new NetworkVariableFloat( + new NetworkVariableSettings() { SendNetworkChannel = MLAPI.Transports.NetworkChannel.PositionUpdate }); /// /// The speed that the character is currently allowed to move, according to the server.