diff --git a/Assets/FishNet/Demos/Network LOD/Prefabs/PlayerInputDriver.cs b/Assets/FishNet/Demos/Network LOD/Prefabs/PlayerInputDriver.cs index b96b2b2..30048e1 100644 --- a/Assets/FishNet/Demos/Network LOD/Prefabs/PlayerInputDriver.cs +++ b/Assets/FishNet/Demos/Network LOD/Prefabs/PlayerInputDriver.cs @@ -20,7 +20,7 @@ public class PlayerInputDriver : NetworkBehaviour } private void Update() { - print("OWNER?:"+base.IsOwner.ToString()); + if (!base.IsOwner) return; if (_characterController.isGrounded||true) @@ -40,7 +40,7 @@ public class PlayerInputDriver : NetworkBehaviour #region UnityEventCallbacks public void OnMovement(InputAction.CallbackContext context) { - print("Getting input:" + context.ReadValue()); + if (!base.IsOwner) return; _moveInput = context.ReadValue(); diff --git a/Assets/FishNet/Demos/Network LOD/Scenes/NetworkLOD_Demo.unity b/Assets/FishNet/Demos/Network LOD/Scenes/NetworkLOD_Demo.unity index 5bb0bd7..3ff30cb 100644 --- a/Assets/FishNet/Demos/Network LOD/Scenes/NetworkLOD_Demo.unity +++ b/Assets/FishNet/Demos/Network LOD/Scenes/NetworkLOD_Demo.unity @@ -1348,10 +1348,10 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: _steamAppID: 480 - _serverBindAddress: 76561199343328028 + _serverBindAddress: _port: 27015 _maximumClients: 16 - _clientAddress: 76561199343328028 + _clientAddress: 76561198308605766 _timeout: 25 --- !u!114 &7443408886575219565 MonoBehaviour: