From fb50bf252b5c37648267088bcd8558ad3c6750bc Mon Sep 17 00:00:00 2001 From: MrGadget <9826063+MrGadget1024@users.noreply.github.com> Date: Sat, 10 Aug 2024 14:49:54 -0400 Subject: [PATCH] CharactrerSelection: Use Common PlayerController --- .../Characters/CharacterAssault.prefab | 154 ++++++++++-------- .../Prefabs/Characters/CharacterHeavy.prefab | 154 ++++++++++-------- .../Prefabs/Characters/CharacterMedic.prefab | 154 ++++++++++-------- 3 files changed, 261 insertions(+), 201 deletions(-) diff --git a/Assets/Mirror/Examples/CharacterSelection/Prefabs/Characters/CharacterAssault.prefab b/Assets/Mirror/Examples/CharacterSelection/Prefabs/Characters/CharacterAssault.prefab index d68bf0187..c494b6692 100644 --- a/Assets/Mirror/Examples/CharacterSelection/Prefabs/Characters/CharacterAssault.prefab +++ b/Assets/Mirror/Examples/CharacterSelection/Prefabs/Characters/CharacterAssault.prefab @@ -1399,11 +1399,11 @@ GameObject: - component: {fileID: 3074504447143314538} - component: {fileID: 7573674391122441047} - component: {fileID: 751312970937383153} - - component: {fileID: 5112291590537772762} - component: {fileID: 7793988651217454999} - - component: {fileID: 3603318197913287424} - component: {fileID: -5286820321314269966} - component: {fileID: 108717044788610704} + - component: {fileID: 6941538328588326580} + - component: {fileID: 4466657976286750537} - component: {fileID: 8165614180483664709} m_Layer: 0 m_Name: CharacterAssault @@ -1461,40 +1461,6 @@ CharacterController: m_SkinWidth: 0.02 m_MinMoveDistance: 0 m_Center: {x: 0, y: 1, z: 0} ---- !u!114 &5112291590537772762 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3074504447143314537} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a553cb17010b2403e8523b558bffbc14, type: 3} - m_Name: - m_EditorClassIdentifier: - syncDirection: 1 - syncMode: 0 - syncInterval: 0 - target: {fileID: 3074504447143314538} - syncPosition: 1 - syncRotation: 1 - syncScale: 0 - onlySyncOnChange: 1 - compressRotation: 1 - interpolatePosition: 1 - interpolateRotation: 1 - interpolateScale: 0 - coordinateSpace: 0 - sendIntervalMultiplier: 1 - timelineOffset: 0 - showGizmos: 0 - showOverlay: 0 - overlayColor: {r: 0, g: 0, b: 0, a: 0.5} - bufferResetMultiplier: 3 - positionSensitivity: 0.01 - rotationSensitivity: 0.01 - scaleSensitivity: 0.01 --- !u!54 &7793988651217454999 Rigidbody: m_ObjectHideFlags: 0 @@ -1511,37 +1477,6 @@ Rigidbody: m_Interpolate: 0 m_Constraints: 0 m_CollisionDetection: 0 ---- !u!114 &3603318197913287424 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 3074504447143314537} - m_Enabled: 0 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2a507efeb4218499aaa7cd74f326f5de, type: 3} - m_Name: - m_EditorClassIdentifier: - syncDirection: 0 - syncMode: 0 - syncInterval: 0 - characterController: {fileID: 751312970937383153} - moveSpeedMultiplier: 8 - maxTurnSpeed: 100 - turnDelta: 3 - initialJumpSpeed: 0.2 - maxJumpSpeed: 5 - jumpDelta: 0.2 - groundState: 2 - horizontal: 0 - vertical: 0 - turnSpeed: 0 - jumpSpeed: 0 - animVelocity: 0 - animRotation: 0 - velocity: {x: 0, y: 0, z: 0} - direction: {x: 0, y: 0, z: 0} --- !u!114 &-5286820321314269966 MonoBehaviour: m_ObjectHideFlags: 0 @@ -1588,6 +1523,91 @@ MonoBehaviour: - {fileID: 3074504445760471458} - {fileID: 3074504446469250245} - {fileID: 3074504445848950737} +--- !u!114 &6941538328588326580 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3074504447143314537} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 8ff3ba0becae47b8b9381191598957c8, type: 3} + m_Name: + m_EditorClassIdentifier: + syncDirection: 1 + syncMode: 0 + syncInterval: 0 + target: {fileID: 3074504447143314538} + syncPosition: 1 + syncRotation: 1 + syncScale: 0 + onlySyncOnChange: 1 + compressRotation: 1 + interpolatePosition: 1 + interpolateRotation: 1 + interpolateScale: 1 + coordinateSpace: 0 + sendIntervalMultiplier: 1 + timelineOffset: 0 + showGizmos: 0 + showOverlay: 0 + overlayColor: {r: 0, g: 0, b: 0, a: 0.5} + onlySyncOnChangeCorrectionMultiplier: 2 + rotationSensitivity: 0.01 + positionPrecision: 0.01 + scalePrecision: 0.01 +--- !u!114 &4466657976286750537 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3074504447143314537} + m_Enabled: 0 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9e212b6697536124ca0e7791fe5d8d6b, type: 3} + m_Name: + m_EditorClassIdentifier: + syncDirection: 0 + syncMode: 0 + syncInterval: 0 + characterController: {fileID: 751312970937383153} + ControllerUIPrefab: {fileID: 644766297742565710, guid: 7beee247444994f0281dadde274cc4af, + type: 3} + moveKeys: + Forward: 119 + Back: 115 + StrafeLeft: 97 + StrafeRight: 100 + TurnLeft: 113 + TurnRight: 101 + Jump: 32 + optionsKeys: + MouseSteer: 109 + AutoRun: 114 + ToggleUI: 117 + controlOptions: 4 + maxMoveSpeed: 8 + inputSensitivity: 2 + inputGravity: 2 + maxTurnSpeed: 100 + turnAcceleration: 3 + initialJumpSpeed: 2.5 + maxJumpSpeed: 3.5 + jumpAcceleration: 4 + groundState: 2 + horizontal: 0 + vertical: 0 + mouseInputX: 0 + mouseSensitivity: 0 + turnSpeed: 0 + jumpSpeed: 0 + animVelocity: 0 + animRotation: 0 + direction: {x: 0, y: 0, z: 0} + velocity: {x: 0, y: 0, z: 0} + controllerUI: {fileID: 0} --- !u!114 &8165614180483664709 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/Assets/Mirror/Examples/CharacterSelection/Prefabs/Characters/CharacterHeavy.prefab b/Assets/Mirror/Examples/CharacterSelection/Prefabs/Characters/CharacterHeavy.prefab index 99b6b012f..5a6a47933 100644 --- a/Assets/Mirror/Examples/CharacterSelection/Prefabs/Characters/CharacterHeavy.prefab +++ b/Assets/Mirror/Examples/CharacterSelection/Prefabs/Characters/CharacterHeavy.prefab @@ -338,11 +338,11 @@ GameObject: - component: {fileID: 2320049526911491158} - component: {fileID: -3965180273899654731} - component: {fileID: -749035254883749775} - - component: {fileID: -6059400616032017643} - component: {fileID: -906254437811298192} - - component: {fileID: -7643125540303550518} - component: {fileID: -7784293741018888422} - component: {fileID: 597190161414468650} + - component: {fileID: -2611020483191821594} + - component: {fileID: 7962281450634085626} - component: {fileID: -6486408998751470869} m_Layer: 0 m_Name: CharacterHeavy @@ -400,40 +400,6 @@ CharacterController: m_SkinWidth: 0.02 m_MinMoveDistance: 0 m_Center: {x: 0, y: 1, z: 0} ---- !u!114 &-6059400616032017643 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2320049526911491159} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a553cb17010b2403e8523b558bffbc14, type: 3} - m_Name: - m_EditorClassIdentifier: - syncDirection: 1 - syncMode: 0 - syncInterval: 0 - target: {fileID: 2320049526911491158} - syncPosition: 1 - syncRotation: 1 - syncScale: 0 - onlySyncOnChange: 1 - compressRotation: 1 - interpolatePosition: 1 - interpolateRotation: 1 - interpolateScale: 0 - coordinateSpace: 0 - sendIntervalMultiplier: 1 - timelineOffset: 0 - showGizmos: 0 - showOverlay: 0 - overlayColor: {r: 0, g: 0, b: 0, a: 0.5} - bufferResetMultiplier: 3 - positionSensitivity: 0.01 - rotationSensitivity: 0.01 - scaleSensitivity: 0.01 --- !u!54 &-906254437811298192 Rigidbody: m_ObjectHideFlags: 0 @@ -450,37 +416,6 @@ Rigidbody: m_Interpolate: 0 m_Constraints: 0 m_CollisionDetection: 0 ---- !u!114 &-7643125540303550518 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 2320049526911491159} - m_Enabled: 0 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2a507efeb4218499aaa7cd74f326f5de, type: 3} - m_Name: - m_EditorClassIdentifier: - syncDirection: 0 - syncMode: 0 - syncInterval: 0 - characterController: {fileID: -749035254883749775} - moveSpeedMultiplier: 8 - maxTurnSpeed: 100 - turnDelta: 3 - initialJumpSpeed: 0.2 - maxJumpSpeed: 5 - jumpDelta: 0.2 - groundState: 2 - horizontal: 0 - vertical: 0 - turnSpeed: 0 - jumpSpeed: 0 - animVelocity: 0 - animRotation: 0 - velocity: {x: 0, y: 0, z: 0} - direction: {x: 0, y: 0, z: 0} --- !u!114 &-7784293741018888422 MonoBehaviour: m_ObjectHideFlags: 0 @@ -524,6 +459,91 @@ MonoBehaviour: - {fileID: 2320049527593028056} - {fileID: 2320049526879068635} - {fileID: 2320049528211028347} +--- !u!114 &-2611020483191821594 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2320049526911491159} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 8ff3ba0becae47b8b9381191598957c8, type: 3} + m_Name: + m_EditorClassIdentifier: + syncDirection: 1 + syncMode: 0 + syncInterval: 0 + target: {fileID: 2320049526911491158} + syncPosition: 1 + syncRotation: 1 + syncScale: 0 + onlySyncOnChange: 1 + compressRotation: 1 + interpolatePosition: 1 + interpolateRotation: 1 + interpolateScale: 1 + coordinateSpace: 0 + sendIntervalMultiplier: 1 + timelineOffset: 0 + showGizmos: 0 + showOverlay: 0 + overlayColor: {r: 0, g: 0, b: 0, a: 0.5} + onlySyncOnChangeCorrectionMultiplier: 2 + rotationSensitivity: 0.01 + positionPrecision: 0.01 + scalePrecision: 0.01 +--- !u!114 &7962281450634085626 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2320049526911491159} + m_Enabled: 0 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9e212b6697536124ca0e7791fe5d8d6b, type: 3} + m_Name: + m_EditorClassIdentifier: + syncDirection: 0 + syncMode: 0 + syncInterval: 0 + characterController: {fileID: -749035254883749775} + ControllerUIPrefab: {fileID: 644766297742565710, guid: 7beee247444994f0281dadde274cc4af, + type: 3} + moveKeys: + Forward: 119 + Back: 115 + StrafeLeft: 97 + StrafeRight: 100 + TurnLeft: 113 + TurnRight: 101 + Jump: 32 + optionsKeys: + MouseSteer: 109 + AutoRun: 114 + ToggleUI: 117 + controlOptions: 4 + maxMoveSpeed: 8 + inputSensitivity: 2 + inputGravity: 2 + maxTurnSpeed: 100 + turnAcceleration: 3 + initialJumpSpeed: 2.5 + maxJumpSpeed: 3.5 + jumpAcceleration: 4 + groundState: 2 + horizontal: 0 + vertical: 0 + mouseInputX: 0 + mouseSensitivity: 0 + turnSpeed: 0 + jumpSpeed: 0 + animVelocity: 0 + animRotation: 0 + direction: {x: 0, y: 0, z: 0} + velocity: {x: 0, y: 0, z: 0} + controllerUI: {fileID: 0} --- !u!114 &-6486408998751470869 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/Assets/Mirror/Examples/CharacterSelection/Prefabs/Characters/CharacterMedic.prefab b/Assets/Mirror/Examples/CharacterSelection/Prefabs/Characters/CharacterMedic.prefab index 7fd30b8ed..743f6a322 100644 --- a/Assets/Mirror/Examples/CharacterSelection/Prefabs/Characters/CharacterMedic.prefab +++ b/Assets/Mirror/Examples/CharacterSelection/Prefabs/Characters/CharacterMedic.prefab @@ -773,11 +773,11 @@ GameObject: - component: {fileID: 9105303183089727062} - component: {fileID: -2656374960411940230} - component: {fileID: -236522517169955124} - - component: {fileID: -9221279038569592884} - component: {fileID: 6097642395301875386} - - component: {fileID: -4474909813393930685} - component: {fileID: 3540726253812090381} - component: {fileID: 4511077071076738942} + - component: {fileID: -6295477058686318049} + - component: {fileID: 3152477792515584470} - component: {fileID: 958723225240916811} m_Layer: 0 m_Name: CharacterMedic @@ -835,40 +835,6 @@ CharacterController: m_SkinWidth: 0.02 m_MinMoveDistance: 0 m_Center: {x: 0, y: 1, z: 0} ---- !u!114 &-9221279038569592884 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 9105303183089727057} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: a553cb17010b2403e8523b558bffbc14, type: 3} - m_Name: - m_EditorClassIdentifier: - syncDirection: 1 - syncMode: 0 - syncInterval: 0 - target: {fileID: 9105303183089727062} - syncPosition: 1 - syncRotation: 1 - syncScale: 0 - onlySyncOnChange: 1 - compressRotation: 1 - interpolatePosition: 1 - interpolateRotation: 1 - interpolateScale: 0 - coordinateSpace: 0 - sendIntervalMultiplier: 1 - timelineOffset: 0 - showGizmos: 0 - showOverlay: 0 - overlayColor: {r: 0, g: 0, b: 0, a: 0.5} - bufferResetMultiplier: 3 - positionSensitivity: 0.01 - rotationSensitivity: 0.01 - scaleSensitivity: 0.01 --- !u!54 &6097642395301875386 Rigidbody: m_ObjectHideFlags: 0 @@ -885,37 +851,6 @@ Rigidbody: m_Interpolate: 0 m_Constraints: 0 m_CollisionDetection: 0 ---- !u!114 &-4474909813393930685 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 9105303183089727057} - m_Enabled: 0 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 2a507efeb4218499aaa7cd74f326f5de, type: 3} - m_Name: - m_EditorClassIdentifier: - syncDirection: 0 - syncMode: 0 - syncInterval: 0 - characterController: {fileID: -236522517169955124} - moveSpeedMultiplier: 8 - maxTurnSpeed: 100 - turnDelta: 3 - initialJumpSpeed: 0.2 - maxJumpSpeed: 5 - jumpDelta: 0.2 - groundState: 2 - horizontal: 0 - vertical: 0 - turnSpeed: 0 - jumpSpeed: 0 - animVelocity: 0 - animRotation: 0 - velocity: {x: 0, y: 0, z: 0} - direction: {x: 0, y: 0, z: 0} --- !u!114 &3540726253812090381 MonoBehaviour: m_ObjectHideFlags: 0 @@ -958,6 +893,91 @@ MonoBehaviour: - {fileID: 9105303183086384159} - {fileID: 9105303183046110706} - {fileID: 9105303183986044559} +--- !u!114 &-6295477058686318049 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9105303183089727057} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 8ff3ba0becae47b8b9381191598957c8, type: 3} + m_Name: + m_EditorClassIdentifier: + syncDirection: 1 + syncMode: 0 + syncInterval: 0 + target: {fileID: 9105303183089727062} + syncPosition: 1 + syncRotation: 1 + syncScale: 0 + onlySyncOnChange: 1 + compressRotation: 1 + interpolatePosition: 1 + interpolateRotation: 1 + interpolateScale: 1 + coordinateSpace: 0 + sendIntervalMultiplier: 1 + timelineOffset: 0 + showGizmos: 0 + showOverlay: 0 + overlayColor: {r: 0, g: 0, b: 0, a: 0.5} + onlySyncOnChangeCorrectionMultiplier: 2 + rotationSensitivity: 0.01 + positionPrecision: 0.01 + scalePrecision: 0.01 +--- !u!114 &3152477792515584470 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 9105303183089727057} + m_Enabled: 0 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 9e212b6697536124ca0e7791fe5d8d6b, type: 3} + m_Name: + m_EditorClassIdentifier: + syncDirection: 0 + syncMode: 0 + syncInterval: 0 + characterController: {fileID: -236522517169955124} + ControllerUIPrefab: {fileID: 644766297742565710, guid: 7beee247444994f0281dadde274cc4af, + type: 3} + moveKeys: + Forward: 119 + Back: 115 + StrafeLeft: 97 + StrafeRight: 100 + TurnLeft: 113 + TurnRight: 101 + Jump: 32 + optionsKeys: + MouseSteer: 109 + AutoRun: 114 + ToggleUI: 117 + controlOptions: 4 + maxMoveSpeed: 8 + inputSensitivity: 2 + inputGravity: 2 + maxTurnSpeed: 100 + turnAcceleration: 3 + initialJumpSpeed: 2.5 + maxJumpSpeed: 3.5 + jumpAcceleration: 4 + groundState: 2 + horizontal: 0 + vertical: 0 + mouseInputX: 0 + mouseSensitivity: 0 + turnSpeed: 0 + jumpSpeed: 0 + animVelocity: 0 + animRotation: 0 + direction: {x: 0, y: 0, z: 0} + velocity: {x: 0, y: 0, z: 0} + controllerUI: {fileID: 0} --- !u!114 &958723225240916811 MonoBehaviour: m_ObjectHideFlags: 0