Skip to content

Commit ae54f56

Browse files
committed
adding the rotation part of the prior change
1 parent 4ca899a commit ae54f56

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Assets/BossRoom/Scripts/Shared/Game/Entity/NetworkCharacterState.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ public void InitNetworkPositionAndRotationY(Vector3 initPosition, float initRota
5151
/// <summary>
5252
/// The networked rotation of this Character. This reflects the authoritative rotation on the server.
5353
/// </summary>
54-
public NetworkVariableFloat NetworkRotationY { get; } = new NetworkVariableFloat();
54+
public NetworkVariableFloat NetworkRotationY { get; } = new NetworkVariableFloat(
55+
new NetworkVariableSettings() { SendNetworkChannel = MLAPI.Transports.NetworkChannel.PositionUpdate });
5556

5657
/// <summary>
5758
/// The speed that the character is currently allowed to move, according to the server.

0 commit comments

Comments
 (0)