diff --git a/Assets/Prefabs/Blood.prefab b/Assets/Prefabs/Blood.prefab index e91cf65..7313f2c 100644 --- a/Assets/Prefabs/Blood.prefab +++ b/Assets/Prefabs/Blood.prefab @@ -42,7 +42,7 @@ AudioSource: m_Enabled: 1 serializedVersion: 4 OutputAudioMixerGroup: {fileID: 0} - m_audioClip: {fileID: 8300000, guid: 06f8108a8e1a3b9aeb66dff63dd1e112, type: 3} + m_audioClip: {fileID: 8300000, guid: 07e7ba37a1d069e4cba742b110efe302, type: 3} m_PlayOnAwake: 1 m_Volume: 1 m_Pitch: 1 @@ -182,11 +182,15 @@ MonoBehaviour: scoreMult: 1 activeParticles: 0 score: 0 + mop1Clean: 0 + mop2Clean: 0 squeakVolume: 0 squeakPlayer: {fileID: 582883990552898231} splatterVolume: 0 splatterPlayer: {fileID: 1223555600225150777} RumbleAmount: 100 + mop1: {fileID: 0} + mop2: {fileID: 0} CleanRadius: 2 bufferLookPointer: 0 --- !u!82 &1223555600225150777 diff --git a/Assets/Prefabs/CameraRig.prefab b/Assets/Prefabs/CameraRig.prefab index ba9821d..56af532 100644 --- a/Assets/Prefabs/CameraRig.prefab +++ b/Assets/Prefabs/CameraRig.prefab @@ -31,7 +31,7 @@ Transform: m_GameObject: {fileID: 2173372557174057003} serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -13.048559, y: -19.467272, z: -10} + m_LocalPosition: {x: -12.415984, y: -19.470865, z: -10} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] @@ -285,7 +285,7 @@ Transform: m_GameObject: {fileID: 2607936989766580656} serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -13.048559, y: -19.467272, z: 0} + m_LocalPosition: {x: -12.415984, y: -19.470865, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] @@ -326,6 +326,7 @@ GameObject: - component: {fileID: 4060518028321021500} - component: {fileID: 6479560527566926107} - component: {fileID: 4203055092890111090} + - component: {fileID: 6282120017644917613} m_Layer: 0 m_Name: Virtual Camera m_TagString: Untagged @@ -342,7 +343,7 @@ Transform: m_GameObject: {fileID: 6306269600238927148} serializedVersion: 2 m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} - m_LocalPosition: {x: -13.048559, y: -19.467272, z: -10} + m_LocalPosition: {x: -12.415984, y: -19.470865, z: -10} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: @@ -429,7 +430,22 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: ea81d9be44682764ba43ffdbef0ef976, type: 3} m_Name: m_EditorClassIdentifier: - offsetter: {fileID: 0} + offsetter: {fileID: 6479560527566926107} +--- !u!114 &6282120017644917613 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 6306269600238927148} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 44d70cc20219cd84593f67d248eafe36, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Offset: {x: 0, y: 0, z: 0} + m_ApplyAfter: 1 + m_PreserveComposition: 0 --- !u!1 &6455280833853463581 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Prefabs/Managers.prefab b/Assets/Prefabs/Managers.prefab index b78a411..ad60284 100644 --- a/Assets/Prefabs/Managers.prefab +++ b/Assets/Prefabs/Managers.prefab @@ -12,6 +12,9 @@ GameObject: - component: {fileID: 6372697238776542044} - component: {fileID: 1114532058491094574} - component: {fileID: 2042633577611342856} + - component: {fileID: 1387340064394057177} + - component: {fileID: 3147574454562838623} + - component: {fileID: 2416568176804350145} m_Layer: 0 m_Name: Managers m_TagString: Untagged @@ -59,6 +62,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 6cf314e58a8539a448e6ddeb3ad48149, type: 3} m_Name: m_EditorClassIdentifier: + DoRubling: 1 --- !u!114 &2042633577611342856 MonoBehaviour: m_ObjectHideFlags: 0 @@ -74,3 +78,51 @@ MonoBehaviour: textParent: {fileID: 0} damageTextPrefab: {fileID: 8357464303304312906, guid: 25c9a2db8fc5b7c4f8feebba5c73e7a3, type: 3} lifeTime: 3 +--- !u!114 &1387340064394057177 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 809911508645467208} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: aab27275f26e5e244856836f6d17b909, type: 3} + m_Name: + m_EditorClassIdentifier: + textParent: {fileID: 0} + damageTextPrefab: {fileID: 8357464303304312906, guid: 25c9a2db8fc5b7c4f8feebba5c73e7a3, type: 3} + lifeTime: 3 +--- !u!114 &3147574454562838623 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 809911508645467208} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d5a57f767e5e46a458fc5d3c628d0cbb, type: 3} + m_Name: + m_EditorClassIdentifier: + GlobalObjectIdHash: 639341465 + AlwaysReplicateAsRoot: 0 + SynchronizeTransform: 1 + ActiveSceneSynchronization: 0 + SceneMigrationSynchronization: 1 + SpawnWithObservers: 1 + DontDestroyWithOwner: 0 + AutoObjectParentSync: 1 +--- !u!114 &2416568176804350145 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 809911508645467208} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 7eac85aca6b45da4bbc5cb3d6940523b, type: 3} + m_Name: + m_EditorClassIdentifier: + PlayerPrefab: {fileID: 0} diff --git a/Assets/Prefabs/Networked/NetworkPrefabsList.asset b/Assets/Prefabs/Networked/NetworkPrefabsList.asset index a3253cd..dadf984 100644 --- a/Assets/Prefabs/Networked/NetworkPrefabsList.asset +++ b/Assets/Prefabs/Networked/NetworkPrefabsList.asset @@ -13,4 +13,14 @@ MonoBehaviour: m_Name: NetworkPrefabsList m_EditorClassIdentifier: IsDefault: 0 - List: [] + List: + - Override: 0 + Prefab: {fileID: 3120938410244321186, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} + SourcePrefabToOverride: {fileID: 0} + SourceHashToOverride: 0 + OverridingTargetPrefab: {fileID: 0} + - Override: 0 + Prefab: {fileID: 3120938410244321186, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} + SourcePrefabToOverride: {fileID: 0} + SourceHashToOverride: 0 + OverridingTargetPrefab: {fileID: 0} diff --git a/Assets/Resources/Player1.prefab b/Assets/Prefabs/Networked/Player1.prefab similarity index 94% rename from Assets/Resources/Player1.prefab rename to Assets/Prefabs/Networked/Player1.prefab index 138063f..6e85176 100644 --- a/Assets/Resources/Player1.prefab +++ b/Assets/Prefabs/Networked/Player1.prefab @@ -120,7 +120,7 @@ CircleCollider2D: m_Material: {fileID: 0} m_IncludeLayers: serializedVersion: 2 - m_Bits: 0 + m_Bits: 4294967295 m_ExcludeLayers: serializedVersion: 2 m_Bits: 192 @@ -383,7 +383,19 @@ MonoBehaviour: damageTickDelay: 0.25 OnHealthZero: m_PersistentCalls: - m_Calls: [] + m_Calls: + - m_Target: {fileID: 0} + m_TargetAssemblyTypeName: GameManager, Assembly-CSharp + m_MethodName: playerDied + m_Mode: 2 + m_Arguments: + m_ObjectArgument: {fileID: 3120938410244321186} + m_ObjectArgumentAssemblyTypeName: UnityEngine.GameObject, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 OnHealthChange: m_PersistentCalls: m_Calls: [] @@ -507,7 +519,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: RopeRubleTolerance: 0.25 - MaxVibration: 0.5 + MaxVibration: 0.25 rope: {fileID: 0} --- !u!114 &1160419468000791564 MonoBehaviour: @@ -530,12 +542,12 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 3120938410244321186} - m_Enabled: 1 + m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: d4d58ce9310f45c42af5d8003f1a832c, type: 3} m_Name: m_EditorClassIdentifier: - StepInterval: 0.8 + StepInterval: 1 Volume: 0.25 --- !u!96 &1963191815529894269 TrailRenderer: @@ -579,7 +591,7 @@ TrailRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 - m_Time: 5 + m_Time: 1 m_PreviewTimeScale: 1 m_Parameters: serializedVersion: 3 @@ -589,13 +601,31 @@ TrailRenderer: m_Curve: - serializedVersion: 3 time: 0 - value: 0.13777733 - inSlope: 0 - outSlope: 0 + value: 0.33777618 + inSlope: 0.07054916 + outSlope: 0.07054916 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 + outWeight: 0.37911436 + - serializedVersion: 3 + time: 0.5816401 + value: 0 + inSlope: 0.79239726 + outSlope: 0.79239726 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.3712629 outWeight: 0.33333334 + - serializedVersion: 3 + time: 0.9745941 + value: 0.07111359 + inSlope: 0.4423178 + outSlope: 0.4423178 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.52421325 + outWeight: 0 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 @@ -657,6 +687,10 @@ PrefabInstance: propertyPath: attachedHealth value: objectReference: {fileID: 3086165646112058191} + - target: {fileID: 3891416435710064780, guid: 0ea0f1215ba49f5448e8e8d60a899fe8, type: 3} + propertyPath: disableOnDeath + value: 0 + objectReference: {fileID: 0} - target: {fileID: 5537527563549888860, guid: 0ea0f1215ba49f5448e8e8d60a899fe8, type: 3} propertyPath: m_Name value: HealthBar diff --git a/Assets/Resources/Player1.prefab.meta b/Assets/Prefabs/Networked/Player1.prefab.meta similarity index 100% rename from Assets/Resources/Player1.prefab.meta rename to Assets/Prefabs/Networked/Player1.prefab.meta diff --git a/Assets/Resources/Player2.prefab b/Assets/Prefabs/Networked/Player2.prefab similarity index 94% rename from Assets/Resources/Player2.prefab rename to Assets/Prefabs/Networked/Player2.prefab index 4fe358c..cd65d3e 100644 --- a/Assets/Resources/Player2.prefab +++ b/Assets/Prefabs/Networked/Player2.prefab @@ -120,7 +120,7 @@ CircleCollider2D: m_Material: {fileID: 0} m_IncludeLayers: serializedVersion: 2 - m_Bits: 0 + m_Bits: 4294967295 m_ExcludeLayers: serializedVersion: 2 m_Bits: 192 @@ -299,7 +299,19 @@ MonoBehaviour: damageTickDelay: 0.25 OnHealthZero: m_PersistentCalls: - m_Calls: [] + m_Calls: + - m_Target: {fileID: 0} + m_TargetAssemblyTypeName: GameManager, Assembly-CSharp + m_MethodName: playerDied + m_Mode: 2 + m_Arguments: + m_ObjectArgument: {fileID: 3120938410244321186} + m_ObjectArgumentAssemblyTypeName: UnityEngine.GameObject, UnityEngine + m_IntArgument: 1 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 OnHealthChange: m_PersistentCalls: m_Calls: [] @@ -423,7 +435,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: RopeRubleTolerance: 0.25 - MaxVibration: 0.5 + MaxVibration: 0.25 rope: {fileID: 0} --- !u!114 &8956099385762146752 MonoBehaviour: @@ -446,12 +458,12 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 3120938410244321186} - m_Enabled: 1 + m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: d4d58ce9310f45c42af5d8003f1a832c, type: 3} m_Name: m_EditorClassIdentifier: - StepInterval: 0.8 + StepInterval: 1 Volume: 0.25 --- !u!96 &9132641508251950069 TrailRenderer: @@ -495,7 +507,7 @@ TrailRenderer: m_SortingLayerID: 0 m_SortingLayer: 0 m_SortingOrder: 0 - m_Time: 5 + m_Time: 1 m_PreviewTimeScale: 1 m_Parameters: serializedVersion: 3 @@ -505,13 +517,31 @@ TrailRenderer: m_Curve: - serializedVersion: 3 time: 0 - value: 0.13777733 - inSlope: 0 - outSlope: 0 + value: 0.33777618 + inSlope: 0.07054916 + outSlope: 0.07054916 tangentMode: 0 weightedMode: 0 inWeight: 0.33333334 + outWeight: 0.37911436 + - serializedVersion: 3 + time: 0.5816401 + value: 0 + inSlope: 0.79239726 + outSlope: 0.79239726 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.3712629 outWeight: 0.33333334 + - serializedVersion: 3 + time: 0.9745941 + value: 0.07111359 + inSlope: 0.4423178 + outSlope: 0.4423178 + tangentMode: 0 + weightedMode: 0 + inWeight: 0.52421325 + outWeight: 0 m_PreInfinity: 2 m_PostInfinity: 2 m_RotationOrder: 4 @@ -657,6 +687,10 @@ PrefabInstance: propertyPath: attachedHealth value: objectReference: {fileID: 3086165646112058191} + - target: {fileID: 3891416435710064780, guid: 0ea0f1215ba49f5448e8e8d60a899fe8, type: 3} + propertyPath: disableOnDeath + value: 0 + objectReference: {fileID: 0} - target: {fileID: 5537527563549888860, guid: 0ea0f1215ba49f5448e8e8d60a899fe8, type: 3} propertyPath: m_Name value: HealthBar diff --git a/Assets/Resources/Player2.prefab.meta b/Assets/Prefabs/Networked/Player2.prefab.meta similarity index 100% rename from Assets/Resources/Player2.prefab.meta rename to Assets/Prefabs/Networked/Player2.prefab.meta diff --git a/Assets/Prefabs/UI/UI.prefab b/Assets/Prefabs/UI/UI.prefab index 67904e9..8e96355 100644 --- a/Assets/Prefabs/UI/UI.prefab +++ b/Assets/Prefabs/UI/UI.prefab @@ -741,7 +741,7 @@ MonoBehaviour: m_Calls: - m_Target: {fileID: 5761693300732987394} m_TargetAssemblyTypeName: PauseMenu, Assembly-CSharp - m_MethodName: ResumeGame + m_MethodName: QuitGame m_Mode: 1 m_Arguments: m_ObjectArgument: {fileID: 0} @@ -1503,7 +1503,7 @@ MonoBehaviour: m_Calls: - m_Target: {fileID: 5761693300732987394} m_TargetAssemblyTypeName: PauseMenu, Assembly-CSharp - m_MethodName: ResumeGame + m_MethodName: MainMenu m_Mode: 1 m_Arguments: m_ObjectArgument: {fileID: 0} @@ -2876,7 +2876,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &1294303342848261759 RectTransform: m_ObjectHideFlags: 0 @@ -2911,7 +2911,7 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 6216580377014392011} - m_Enabled: 1 + m_Enabled: 0 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} m_Name: @@ -3169,7 +3169,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &9075173710402410956 RectTransform: m_ObjectHideFlags: 0 @@ -3195,7 +3195,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: -9.998108, y: 12.416016} + m_AnchoredPosition: {x: -9.998047, y: 12.416016} m_SizeDelta: {x: 2059.2097, y: 577.3885} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &3556746642119224168 @@ -4579,7 +4579,7 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 194.86456, y: 195} + m_AnchoredPosition: {x: 194.86475, y: 195} m_SizeDelta: {x: 250, y: 250} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &1107145590061588416 @@ -4638,12 +4638,12 @@ MonoBehaviour: rope: {fileID: 0} mopSizeIncrease: 1.1 speedIncrease: 1.1 - ropeIncrease: 2 + ropeIncrease: 1.1 healthIncrease: 1.1 damageIncrease: 1.1 bloodIncrease: 1.1 reelIncrease: 1.1 - upgradeCost: 100000 + upgradeCost: 15000 BloodMeter: {fileID: 562279769276080804} description: {fileID: 8197579949334750501} --- !u!95 &4857048527743277236 diff --git a/Assets/Scenes/GameScene.unity b/Assets/Scenes/GameScene.unity index e617ca5..78850bc 100644 --- a/Assets/Scenes/GameScene.unity +++ b/Assets/Scenes/GameScene.unity @@ -633,37 +633,6 @@ Transform: m_CorrespondingSourceObject: {fileID: 3862814901187971034, guid: 5846f4d0fc6a1a44ba388893e7ff9373, type: 3} m_PrefabInstance: {fileID: 7693964683212020007} m_PrefabAsset: {fileID: 0} ---- !u!1 &690229187 stripped -GameObject: - m_CorrespondingSourceObject: {fileID: 6306269600238927148, guid: c53e6971c95afb1429cd82616a7b6737, type: 3} - m_PrefabInstance: {fileID: 5796191506433166633} - m_PrefabAsset: {fileID: 0} ---- !u!114 &690229192 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 690229187} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 44d70cc20219cd84593f67d248eafe36, type: 3} - m_Name: - m_EditorClassIdentifier: - m_Offset: {x: 0, y: 0, z: 0} - m_ApplyAfter: 1 - m_PreserveComposition: 0 ---- !u!114 &690229195 stripped -MonoBehaviour: - m_CorrespondingSourceObject: {fileID: 6479560527566926107, guid: c53e6971c95afb1429cd82616a7b6737, type: 3} - m_PrefabInstance: {fileID: 5796191506433166633} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 690229187} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 44d70cc20219cd84593f67d248eafe36, type: 3} - m_Name: - m_EditorClassIdentifier: --- !u!1 &708735388 GameObject: m_ObjectHideFlags: 0 @@ -807,142 +776,22 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - - target: {fileID: 1842047609192968100, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: m_IncludeLayers.m_Bits - value: 4294967295 - objectReference: {fileID: 0} - - target: {fileID: 3086165646112058191, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: OnHealthZero.m_PersistentCalls.m_Calls.Array.size - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 3086165646112058191, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: OnHealthZero.m_PersistentCalls.m_Calls.Array.data[0].m_Mode - value: 2 - objectReference: {fileID: 0} - target: {fileID: 3086165646112058191, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} propertyPath: OnHealthZero.m_PersistentCalls.m_Calls.Array.data[0].m_Target value: objectReference: {fileID: 652688744} - - target: {fileID: 3086165646112058191, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: OnHealthZero.m_PersistentCalls.m_Calls.Array.data[0].m_CallState - value: 2 - objectReference: {fileID: 0} - - target: {fileID: 3086165646112058191, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: OnHealthZero.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName - value: playerDied - objectReference: {fileID: 0} - - target: {fileID: 3086165646112058191, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: OnHealthZero.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName - value: GameManager, Assembly-CSharp - objectReference: {fileID: 0} - - target: {fileID: 3086165646112058191, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: OnHealthZero.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_IntArgument - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 3086165646112058191, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: OnHealthZero.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgument - value: - objectReference: {fileID: 1579580564} - - target: {fileID: 3086165646112058191, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: OnHealthZero.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgumentAssemblyTypeName - value: UnityEngine.GameObject, UnityEngine - objectReference: {fileID: 0} - target: {fileID: 3120938410244321186, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} propertyPath: m_Name value: Player2 objectReference: {fileID: 0} - - target: {fileID: 3978707538285514992, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: disableOnDeath - value: 0 - objectReference: {fileID: 0} - target: {fileID: 5108819328747686001, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} propertyPath: rope value: objectReference: {fileID: 1920006248} - - target: {fileID: 5108819328747686001, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: MaxVibration - value: 0.25 - objectReference: {fileID: 0} - - target: {fileID: 5150961666696654592, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: Volume - value: 0.25 - objectReference: {fileID: 0} - - target: {fileID: 5150961666696654592, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: m_Enabled - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 5150961666696654592, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: StepInterval - value: 1 - objectReference: {fileID: 0} - target: {fileID: 7071433868121438663, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} propertyPath: otherPlayerAttack value: objectReference: {fileID: 1232208433} - - target: {fileID: 9132641508251950069, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: m_Time - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 9132641508251950069, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.size - value: 3 - objectReference: {fileID: 0} - - target: {fileID: 9132641508251950069, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[1].time - value: 0.5816401 - objectReference: {fileID: 0} - - target: {fileID: 9132641508251950069, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[2].time - value: 0.9745941 - objectReference: {fileID: 0} - - target: {fileID: 9132641508251950069, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[0].value - value: 0.33777618 - objectReference: {fileID: 0} - - target: {fileID: 9132641508251950069, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[2].value - value: 0.07111359 - objectReference: {fileID: 0} - - target: {fileID: 9132641508251950069, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[0].inSlope - value: 0.07054916 - objectReference: {fileID: 0} - - target: {fileID: 9132641508251950069, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[1].inSlope - value: 0.79239726 - objectReference: {fileID: 0} - - target: {fileID: 9132641508251950069, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[2].inSlope - value: 0.4423178 - objectReference: {fileID: 0} - - target: {fileID: 9132641508251950069, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[0].outSlope - value: 0.07054916 - objectReference: {fileID: 0} - - target: {fileID: 9132641508251950069, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[1].inWeight - value: 0.3712629 - objectReference: {fileID: 0} - - target: {fileID: 9132641508251950069, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[1].outSlope - value: 0.79239726 - objectReference: {fileID: 0} - - target: {fileID: 9132641508251950069, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[2].inWeight - value: 0.52421325 - objectReference: {fileID: 0} - - target: {fileID: 9132641508251950069, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[2].outSlope - value: 0.4423178 - objectReference: {fileID: 0} - - target: {fileID: 9132641508251950069, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[0].outWeight - value: 0.37911436 - objectReference: {fileID: 0} - - target: {fileID: 9132641508251950069, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[1].outWeight - value: 0.33333334 - objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] @@ -1359,126 +1208,14 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - - target: {fileID: 1691493459240420355, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: Volume - value: 0.25 - objectReference: {fileID: 0} - - target: {fileID: 1691493459240420355, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: m_Enabled - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 1691493459240420355, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: StepInterval - value: 1 - objectReference: {fileID: 0} - target: {fileID: 1749848915408613053, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} propertyPath: otherPlayerAttack value: objectReference: {fileID: 869964774} - - target: {fileID: 1842047609192968100, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: m_IncludeLayers.m_Bits - value: 4294967295 - objectReference: {fileID: 0} - - target: {fileID: 1963191815529894269, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: m_Time - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 1963191815529894269, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.size - value: 3 - objectReference: {fileID: 0} - - target: {fileID: 1963191815529894269, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[1].time - value: 0.5816401 - objectReference: {fileID: 0} - - target: {fileID: 1963191815529894269, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[2].time - value: 0.9745941 - objectReference: {fileID: 0} - - target: {fileID: 1963191815529894269, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[0].value - value: 0.33777618 - objectReference: {fileID: 0} - - target: {fileID: 1963191815529894269, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[1].value - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 1963191815529894269, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[2].value - value: 0.07111359 - objectReference: {fileID: 0} - - target: {fileID: 1963191815529894269, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[0].inSlope - value: 0.07054916 - objectReference: {fileID: 0} - - target: {fileID: 1963191815529894269, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[1].inSlope - value: 0.79239726 - objectReference: {fileID: 0} - - target: {fileID: 1963191815529894269, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[2].inSlope - value: 0.4423178 - objectReference: {fileID: 0} - - target: {fileID: 1963191815529894269, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[0].outSlope - value: 0.07054916 - objectReference: {fileID: 0} - - target: {fileID: 1963191815529894269, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[1].inWeight - value: 0.3712629 - objectReference: {fileID: 0} - - target: {fileID: 1963191815529894269, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[1].outSlope - value: 0.79239726 - objectReference: {fileID: 0} - - target: {fileID: 1963191815529894269, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[2].inWeight - value: 0.52421325 - objectReference: {fileID: 0} - - target: {fileID: 1963191815529894269, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[2].outSlope - value: 0.4423178 - objectReference: {fileID: 0} - - target: {fileID: 1963191815529894269, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[0].outWeight - value: 0.37911436 - objectReference: {fileID: 0} - - target: {fileID: 1963191815529894269, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: m_Parameters.widthCurve.m_Curve.Array.data[1].outWeight - value: 0.33333334 - objectReference: {fileID: 0} - - target: {fileID: 3086165646112058191, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: OnHealthZero.m_PersistentCalls.m_Calls.Array.size - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 3086165646112058191, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: OnHealthZero.m_PersistentCalls.m_Calls.Array.data[0].m_Mode - value: 2 - objectReference: {fileID: 0} - target: {fileID: 3086165646112058191, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} propertyPath: OnHealthZero.m_PersistentCalls.m_Calls.Array.data[0].m_Target value: objectReference: {fileID: 652688744} - - target: {fileID: 3086165646112058191, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: OnHealthZero.m_PersistentCalls.m_Calls.Array.data[0].m_CallState - value: 2 - objectReference: {fileID: 0} - - target: {fileID: 3086165646112058191, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: OnHealthZero.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName - value: playerDied - objectReference: {fileID: 0} - - target: {fileID: 3086165646112058191, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: OnHealthZero.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName - value: GameManager, Assembly-CSharp - objectReference: {fileID: 0} - - target: {fileID: 3086165646112058191, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: OnHealthZero.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgument - value: - objectReference: {fileID: 1254139629} - - target: {fileID: 3086165646112058191, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: OnHealthZero.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgumentAssemblyTypeName - value: UnityEngine.GameObject, UnityEngine - objectReference: {fileID: 0} - target: {fileID: 3120938410244321186, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} propertyPath: m_Name value: Player1 @@ -1487,14 +1224,6 @@ PrefabInstance: propertyPath: rope value: objectReference: {fileID: 1920006248} - - target: {fileID: 3389629528887116870, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: MaxVibration - value: 0.25 - objectReference: {fileID: 0} - - target: {fileID: 6946754650208528184, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} - propertyPath: disableOnDeath - value: 0 - objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] @@ -3896,26 +3625,6 @@ Transform: m_Children: [] m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1566837117 stripped -GameObject: - m_CorrespondingSourceObject: {fileID: 809911508645467208, guid: ec5007446d8bbca48bf02b3a7e752da1, type: 3} - m_PrefabInstance: {fileID: 1683288374126251321} - m_PrefabAsset: {fileID: 0} ---- !u!114 &1566837120 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1566837117} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: aab27275f26e5e244856836f6d17b909, type: 3} - m_Name: - m_EditorClassIdentifier: - textParent: {fileID: 1481267923} - damageTextPrefab: {fileID: 8357464303304312906, guid: 25c9a2db8fc5b7c4f8feebba5c73e7a3, type: 3} - lifeTime: 3 --- !u!1 &1579580564 stripped GameObject: m_CorrespondingSourceObject: {fileID: 3120938410244321186, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} @@ -4072,6 +3781,10 @@ PrefabInstance: propertyPath: m_Name value: Managers objectReference: {fileID: 0} + - target: {fileID: 1387340064394057177, guid: ec5007446d8bbca48bf02b3a7e752da1, type: 3} + propertyPath: textParent + value: + objectReference: {fileID: 1481267923} - target: {fileID: 3032075919872812610, guid: ec5007446d8bbca48bf02b3a7e752da1, type: 3} propertyPath: m_LocalPosition.x value: 0 @@ -4112,13 +3825,14 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} + - target: {fileID: 3147574454562838623, guid: ec5007446d8bbca48bf02b3a7e752da1, type: 3} + propertyPath: GlobalObjectIdHash + value: 1441761078 + objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] - m_AddedComponents: - - targetCorrespondingSourceObject: {fileID: 809911508645467208, guid: ec5007446d8bbca48bf02b3a7e752da1, type: 3} - insertIndex: -1 - addedObject: {fileID: 1566837120} + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: ec5007446d8bbca48bf02b3a7e752da1, type: 3} --- !u!1001 &4158834148864819266 PrefabInstance: @@ -4148,18 +3862,10 @@ PrefabInstance: propertyPath: player2 value: objectReference: {fileID: 1579580564} - - target: {fileID: 2458716502903188221, guid: 48e0e53445d42474895d37a321c39d1c, type: 3} - propertyPath: upgradeCost - value: 15000 - objectReference: {fileID: 0} - target: {fileID: 2458716502903188221, guid: 48e0e53445d42474895d37a321c39d1c, type: 3} propertyPath: bloodManager value: objectReference: {fileID: 640312359} - - target: {fileID: 2458716502903188221, guid: 48e0e53445d42474895d37a321c39d1c, type: 3} - propertyPath: ropeIncrease - value: 1.1 - objectReference: {fileID: 0} - target: {fileID: 2603779566095873902, guid: 48e0e53445d42474895d37a321c39d1c, type: 3} propertyPath: m_Pivot.x value: 0 @@ -4240,42 +3946,10 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - - target: {fileID: 3949261905163662283, guid: 48e0e53445d42474895d37a321c39d1c, type: 3} - propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName - value: MainMenu - objectReference: {fileID: 0} - - target: {fileID: 3978272837628759439, guid: 48e0e53445d42474895d37a321c39d1c, type: 3} - propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName - value: QuitGame - objectReference: {fileID: 0} - - target: {fileID: 5758936918037227603, guid: 48e0e53445d42474895d37a321c39d1c, type: 3} - propertyPath: m_AnchoredPosition.x - value: 194.86475 - objectReference: {fileID: 0} - - target: {fileID: 6216580377014392011, guid: 48e0e53445d42474895d37a321c39d1c, type: 3} - propertyPath: m_IsActive - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6303512888481769756, guid: 48e0e53445d42474895d37a321c39d1c, type: 3} - propertyPath: m_SizeDelta.x - value: 300 - objectReference: {fileID: 0} - - target: {fileID: 6486619975880161691, guid: 48e0e53445d42474895d37a321c39d1c, type: 3} - propertyPath: m_IsActive - value: 0 - objectReference: {fileID: 0} - target: {fileID: 7301411897347746173, guid: 48e0e53445d42474895d37a321c39d1c, type: 3} propertyPath: m_Name value: UI objectReference: {fileID: 0} - - target: {fileID: 7320843173059553054, guid: 48e0e53445d42474895d37a321c39d1c, type: 3} - propertyPath: m_Enabled - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 9075173710402410956, guid: 48e0e53445d42474895d37a321c39d1c, type: 3} - propertyPath: m_AnchoredPosition.x - value: -9.998047 - objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] @@ -4354,26 +4028,6 @@ PrefabInstance: serializedVersion: 3 m_TransformParent: {fileID: 0} m_Modifications: - - target: {fileID: 1609280383408315754, guid: c53e6971c95afb1429cd82616a7b6737, type: 3} - propertyPath: orthographic size - value: 12.5 - objectReference: {fileID: 0} - - target: {fileID: 2849751201525768572, guid: c53e6971c95afb1429cd82616a7b6737, type: 3} - propertyPath: m_LocalPosition.x - value: -12.415984 - objectReference: {fileID: 0} - - target: {fileID: 2849751201525768572, guid: c53e6971c95afb1429cd82616a7b6737, type: 3} - propertyPath: m_LocalPosition.y - value: -19.470865 - objectReference: {fileID: 0} - - target: {fileID: 3197454023887695364, guid: c53e6971c95afb1429cd82616a7b6737, type: 3} - propertyPath: m_LocalPosition.x - value: -12.415984 - objectReference: {fileID: 0} - - target: {fileID: 3197454023887695364, guid: c53e6971c95afb1429cd82616a7b6737, type: 3} - propertyPath: m_LocalPosition.y - value: -19.470865 - objectReference: {fileID: 0} - target: {fileID: 3401975006071930001, guid: c53e6971c95afb1429cd82616a7b6737, type: 3} propertyPath: m_Targets.Array.data[0].target value: @@ -4390,10 +4044,6 @@ PrefabInstance: propertyPath: players.Array.data[1] value: objectReference: {fileID: 1579580564} - - target: {fileID: 4203055092890111090, guid: c53e6971c95afb1429cd82616a7b6737, type: 3} - propertyPath: offsetter - value: - objectReference: {fileID: 690229195} - target: {fileID: 5959206239141280122, guid: c53e6971c95afb1429cd82616a7b6737, type: 3} propertyPath: m_LocalPosition.x value: 0 @@ -4438,21 +4088,10 @@ PrefabInstance: propertyPath: m_Name value: CameraRig objectReference: {fileID: 0} - - target: {fileID: 8946450710138871461, guid: c53e6971c95afb1429cd82616a7b6737, type: 3} - propertyPath: m_LocalPosition.x - value: -12.415984 - objectReference: {fileID: 0} - - target: {fileID: 8946450710138871461, guid: c53e6971c95afb1429cd82616a7b6737, type: 3} - propertyPath: m_LocalPosition.y - value: -19.470865 - objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] - m_AddedComponents: - - targetCorrespondingSourceObject: {fileID: 6306269600238927148, guid: c53e6971c95afb1429cd82616a7b6737, type: 3} - insertIndex: -1 - addedObject: {fileID: 690229192} + m_AddedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: c53e6971c95afb1429cd82616a7b6737, type: 3} --- !u!114 &5796191506433166634 stripped MonoBehaviour: @@ -5187,10 +4826,6 @@ PrefabInstance: serializedVersion: 3 m_TransformParent: {fileID: 0} m_Modifications: - - target: {fileID: 582883990552898231, guid: a99c6b890ab711f4faebdfd6335c5f16, type: 3} - propertyPath: m_audioClip - value: - objectReference: {fileID: 8300000, guid: 07e7ba37a1d069e4cba742b110efe302, type: 3} - target: {fileID: 2227888449345887443, guid: a99c6b890ab711f4faebdfd6335c5f16, type: 3} propertyPath: m_Name value: Blood @@ -5203,10 +4838,6 @@ PrefabInstance: propertyPath: mop2 value: objectReference: {fileID: 1579580574} - - target: {fileID: 4056614590725156132, guid: a99c6b890ab711f4faebdfd6335c5f16, type: 3} - propertyPath: RumbleAmount - value: 100 - objectReference: {fileID: 0} - target: {fileID: 6363525508243884259, guid: a99c6b890ab711f4faebdfd6335c5f16, type: 3} propertyPath: m_LocalPosition.x value: 0 diff --git a/Assets/Scripts/Multiplayer/NetworkedPlayerSpawner.cs b/Assets/Scripts/Multiplayer/NetworkedPlayerSpawner.cs new file mode 100644 index 0000000..bfb0100 --- /dev/null +++ b/Assets/Scripts/Multiplayer/NetworkedPlayerSpawner.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using Unity.Netcode; +using UnityEngine; +using UnityEngine.SceneManagement; + +public class NetworkedPlayerSpawner : NetworkBehaviour +{ + [SerializeField] private GameObject PlayerPrefab; + + private void Start() + { + DontDestroyOnLoad(this); + } + + public override void OnNetworkSpawn() + { + NetworkManager.Singleton.SceneManager.OnLoadEventCompleted += SceneLoaded; + } + + private void SceneLoaded(string sceneName, LoadSceneMode loadSceneMode, List clientsCompleted, List clientsTimedOut) + { + if (IsHost && sceneName == "Multiplayer") + { + for (int i = 0; i < clientsCompleted.Count; i++) + { + GameObject player = Instantiate(PlayerPrefab, Vector2.up * 3, Quaternion.identity); + player.GetComponent().SpawnAsPlayerObject(clientsCompleted[i], true); + } + } + } +} diff --git a/Assets/Scripts/Multiplayer/NetworkedPlayerSpawner.cs.meta b/Assets/Scripts/Multiplayer/NetworkedPlayerSpawner.cs.meta new file mode 100644 index 0000000..8ad94f8 --- /dev/null +++ b/Assets/Scripts/Multiplayer/NetworkedPlayerSpawner.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7eac85aca6b45da4bbc5cb3d6940523b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: