diff --git a/Assets/Prefabs/Networked/NetworkedPlayer.prefab b/Assets/Prefabs/Networked/NetworkedPlayer.prefab index 86a591a..d223073 100644 --- a/Assets/Prefabs/Networked/NetworkedPlayer.prefab +++ b/Assets/Prefabs/Networked/NetworkedPlayer.prefab @@ -325,6 +325,7 @@ GameObject: - component: {fileID: 93986863963319370} - component: {fileID: -5630779774840087441} - component: {fileID: 7057145984586355236} + - component: {fileID: 2900222741193462446} m_Layer: 7 m_Name: NetworkedPlayer m_TagString: Player @@ -432,8 +433,6 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: playerNumber: 0 - movement: {x: 0, y: 0} - look: {x: 0, y: 0} whipAttack: 0 useArrowKeys: 0 --- !u!114 &1449424410418603396 @@ -474,7 +473,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: d5a57f767e5e46a458fc5d3c628d0cbb, type: 3} m_Name: m_EditorClassIdentifier: - GlobalObjectIdHash: 4009941625 + GlobalObjectIdHash: 2899378164 InScenePlacedSourceGlobalObjectIdHash: 0 AlwaysReplicateAsRoot: 0 SynchronizeTransform: 1 @@ -495,6 +494,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 2d19183357399174e9b76aff8bde44d3, type: 3} m_Name: m_EditorClassIdentifier: + KeepEnabledIf: 1 objectsToDisable: - {fileID: 1949941092232239315} - {fileID: 5062989152879916107} @@ -671,6 +671,7 @@ MonoBehaviour: InLocalSpace: 0 Interpolate: 1 SlerpPosition: 0 + authorityMode: 1 --- !u!114 &-5630779774840087441 MonoBehaviour: m_ObjectHideFlags: 0 @@ -695,6 +696,19 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 80d7c879794dfda4687da0e400131852, type: 3} m_Name: m_EditorClassIdentifier: +--- !u!114 &2900222741193462446 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3120938410244321186} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0b44a9f6fa4174c4da1032d1e3e4ddcd, type: 3} + m_Name: + m_EditorClassIdentifier: + ForceEnableComponent: 0 --- !u!1001 &6225877037457186740 PrefabInstance: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/Player/Input/ReconciliationPlayerControllerMiddleman.cs b/Assets/Scripts/Player/Input/ReconciliationPlayerControllerMiddleman.cs index 116ec13..78aadbb 100644 --- a/Assets/Scripts/Player/Input/ReconciliationPlayerControllerMiddleman.cs +++ b/Assets/Scripts/Player/Input/ReconciliationPlayerControllerMiddleman.cs @@ -120,7 +120,7 @@ public class ReconciliationPlayerControllerMiddleman : NetworkBehaviour, IMoveDa } - [ServerRpc] + [ServerRpc(RequireOwnership = false)] private void OnServerStateRecieved_ServerRpc(StatePayload serverState) { if (!IsOwner) return; diff --git a/Assets/Scripts/Player/Movement/PlayerMovement.cs b/Assets/Scripts/Player/Movement/PlayerMovement.cs index 252c40b..e34c5dd 100644 --- a/Assets/Scripts/Player/Movement/PlayerMovement.cs +++ b/Assets/Scripts/Player/Movement/PlayerMovement.cs @@ -43,6 +43,7 @@ public class PlayerMovement : MonoBehaviour } else { + Debug.LogWarning("[Network][Movement] Could not find input middleman. Defaulting back to normal player input"); playerInput = GetComponent(); }