feat: basic online working with relay

This commit is contained in:
Chris
2025-09-03 19:37:27 -04:00
parent 5be9c06cf2
commit a13f10564b
11 changed files with 299 additions and 75 deletions

View File

@@ -120,6 +120,7 @@ GameObject:
serializedVersion: 6
m_Component:
- component: {fileID: 7329826263822975762}
- component: {fileID: 2538182172493791937}
- component: {fileID: 7494367001870099223}
- component: {fileID: 8163344541298437235}
- component: {fileID: 679199079481597207}
@@ -129,7 +130,6 @@ GameObject:
- component: {fileID: 2129000951396423518}
- component: {fileID: 2842793574603981349}
- component: {fileID: 43868462096200776}
- component: {fileID: 2538182172493791937}
- component: {fileID: 6067609290387865387}
m_Layer: 0
m_Name: Player
@@ -154,6 +154,31 @@ Transform:
- {fileID: 2655796284435897345}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &2538182172493791937
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2757828562731694833}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d5a57f767e5e46a458fc5d3c628d0cbb, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.Netcode.Runtime::Unity.Netcode.NetworkObject
GlobalObjectIdHash: 3816484910
InScenePlacedSourceGlobalObjectIdHash: 0
DeferredDespawnTick: 0
Ownership: 1
AlwaysReplicateAsRoot: 0
SynchronizeTransform: 1
ActiveSceneSynchronization: 0
SceneMigrationSynchronization: 1
SpawnWithObservers: 1
DontDestroyWithOwner: 0
AutoObjectParentSync: 1
SyncOwnerTransformWhenParented: 1
AllowOwnerToParent: 0
--- !u!114 &7494367001870099223
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -166,6 +191,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 0c0da0317d344ea49b810f0010efefa8, type: 3}
m_Name:
m_EditorClassIdentifier:
ShowTopMostFoldoutHeaderGroup: 1
controls: {fileID: 0}
camera: {fileID: 0}
--- !u!114 &8163344541298437235
@@ -433,7 +459,7 @@ MonoBehaviour:
m_ActionEvents: []
m_NeverAutoSwitchControlSchemes: 1
m_DefaultControlScheme: Controller
m_DefaultActionMap: b2eefcc8-f0a6-4007-854d-f0b59159e624
m_DefaultActionMap: In-Game
m_SplitScreenIndex: -1
m_Camera: {fileID: 0}
--- !u!143 &2106585328495276993
@@ -556,31 +582,6 @@ MonoBehaviour:
Radius: 0.5
targetGroup: {fileID: 0}
lockOnDocument: {fileID: 0}
--- !u!114 &2538182172493791937
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2757828562731694833}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d5a57f767e5e46a458fc5d3c628d0cbb, type: 3}
m_Name:
m_EditorClassIdentifier: Unity.Netcode.Runtime::Unity.Netcode.NetworkObject
GlobalObjectIdHash: 3816484910
InScenePlacedSourceGlobalObjectIdHash: 0
DeferredDespawnTick: 0
Ownership: 1
AlwaysReplicateAsRoot: 0
SynchronizeTransform: 1
ActiveSceneSynchronization: 0
SceneMigrationSynchronization: 1
SpawnWithObservers: 1
DontDestroyWithOwner: 0
AutoObjectParentSync: 1
SyncOwnerTransformWhenParented: 1
AllowOwnerToParent: 0
--- !u!114 &6067609290387865387
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -596,7 +597,7 @@ MonoBehaviour:
ShowTopMostFoldoutHeaderGroup: 1
NetworkTransformExpanded: 0
AutoOwnerAuthorityTickOffset: 1
PositionInterpolationType: 0
PositionInterpolationType: 2
RotationInterpolationType: 0
ScaleInterpolationType: 0
PositionLerpSmoothing: 1