I think server-side movement working. But rope is weird
This commit is contained in:
parent
fe3cf2a44c
commit
026d427dc0
|
@ -325,6 +325,7 @@ GameObject:
|
||||||
- component: {fileID: 93986863963319370}
|
- component: {fileID: 93986863963319370}
|
||||||
- component: {fileID: -5630779774840087441}
|
- component: {fileID: -5630779774840087441}
|
||||||
- component: {fileID: 7057145984586355236}
|
- component: {fileID: 7057145984586355236}
|
||||||
|
- component: {fileID: 2900222741193462446}
|
||||||
m_Layer: 7
|
m_Layer: 7
|
||||||
m_Name: NetworkedPlayer
|
m_Name: NetworkedPlayer
|
||||||
m_TagString: Player
|
m_TagString: Player
|
||||||
|
@ -432,8 +433,6 @@ MonoBehaviour:
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
playerNumber: 0
|
playerNumber: 0
|
||||||
movement: {x: 0, y: 0}
|
|
||||||
look: {x: 0, y: 0}
|
|
||||||
whipAttack: 0
|
whipAttack: 0
|
||||||
useArrowKeys: 0
|
useArrowKeys: 0
|
||||||
--- !u!114 &1449424410418603396
|
--- !u!114 &1449424410418603396
|
||||||
|
@ -474,7 +473,7 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: d5a57f767e5e46a458fc5d3c628d0cbb, type: 3}
|
m_Script: {fileID: 11500000, guid: d5a57f767e5e46a458fc5d3c628d0cbb, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
GlobalObjectIdHash: 4009941625
|
GlobalObjectIdHash: 2899378164
|
||||||
InScenePlacedSourceGlobalObjectIdHash: 0
|
InScenePlacedSourceGlobalObjectIdHash: 0
|
||||||
AlwaysReplicateAsRoot: 0
|
AlwaysReplicateAsRoot: 0
|
||||||
SynchronizeTransform: 1
|
SynchronizeTransform: 1
|
||||||
|
@ -495,6 +494,7 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: 2d19183357399174e9b76aff8bde44d3, type: 3}
|
m_Script: {fileID: 11500000, guid: 2d19183357399174e9b76aff8bde44d3, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
KeepEnabledIf: 1
|
||||||
objectsToDisable:
|
objectsToDisable:
|
||||||
- {fileID: 1949941092232239315}
|
- {fileID: 1949941092232239315}
|
||||||
- {fileID: 5062989152879916107}
|
- {fileID: 5062989152879916107}
|
||||||
|
@ -671,6 +671,7 @@ MonoBehaviour:
|
||||||
InLocalSpace: 0
|
InLocalSpace: 0
|
||||||
Interpolate: 1
|
Interpolate: 1
|
||||||
SlerpPosition: 0
|
SlerpPosition: 0
|
||||||
|
authorityMode: 1
|
||||||
--- !u!114 &-5630779774840087441
|
--- !u!114 &-5630779774840087441
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -695,6 +696,19 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: 80d7c879794dfda4687da0e400131852, type: 3}
|
m_Script: {fileID: 11500000, guid: 80d7c879794dfda4687da0e400131852, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
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
|
--- !u!1001 &6225877037457186740
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
@ -120,7 +120,7 @@ public class ReconciliationPlayerControllerMiddleman : NetworkBehaviour, IMoveDa
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[ServerRpc]
|
[ServerRpc(RequireOwnership = false)]
|
||||||
private void OnServerStateRecieved_ServerRpc(StatePayload serverState)
|
private void OnServerStateRecieved_ServerRpc(StatePayload serverState)
|
||||||
{
|
{
|
||||||
if (!IsOwner) return;
|
if (!IsOwner) return;
|
||||||
|
|
|
@ -43,6 +43,7 @@ public class PlayerMovement : MonoBehaviour
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Debug.LogWarning("[Network][Movement] Could not find input middleman. Defaulting back to normal player input");
|
||||||
playerInput = GetComponent<PlayerInput>();
|
playerInput = GetComponent<PlayerInput>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue