diff options
| author | SmallFox <2806143047@qq.com> | 2026-05-22 20:53:07 +0800 |
|---|---|---|
| committer | SmallFox <2806143047@qq.com> | 2026-05-22 20:53:07 +0800 |
| commit | 6903a64ed15bf6046bddd98a4bc095b1ea5844ee (patch) | |
| tree | 00d053130349cd57034e8377c4a16e1d93016487 | |
| parent | 5360e988fa7c47da8d58ee3a25a7ed92fd700a57 (diff) | |
修复bug(大概)
没修好
| -rw-r--r-- | Assets/Art/Animations/Falling To Roll.fbx | bin | 1920464 -> 416320 bytes | |||
| -rw-r--r-- | Assets/Art/Animations/Falling To Roll.fbx.meta | 8 | ||||
| -rw-r--r-- | Assets/Art/Animator/Humanoid.controller | 87 | ||||
| -rw-r--r-- | Assets/Prefabs/Player.prefab | 229 | ||||
| -rw-r--r-- | Assets/Prefabs/Player.prefab.meta (renamed from Assets/Assets/polygon_assets/PolygonFantasyHeroCharacters/URP_Extract_Me.unitypackage.meta) | 4 | ||||
| -rw-r--r-- | Assets/Scripts/PlayerManager.cs | 8 | ||||
| -rw-r--r-- | Assets/Scripts/PlayerManager.cs.meta | 11 |
7 files changed, 335 insertions, 12 deletions
diff --git a/Assets/Art/Animations/Falling To Roll.fbx b/Assets/Art/Animations/Falling To Roll.fbx Binary files differindex 81b2aca..bfd2d73 100644 --- a/Assets/Art/Animations/Falling To Roll.fbx +++ b/Assets/Art/Animations/Falling To Roll.fbx diff --git a/Assets/Art/Animations/Falling To Roll.fbx.meta b/Assets/Art/Animations/Falling To Roll.fbx.meta index acdfd34..8eae93a 100644 --- a/Assets/Art/Animations/Falling To Roll.fbx.meta +++ b/Assets/Art/Animations/Falling To Roll.fbx.meta @@ -24,7 +24,7 @@ ModelImporter: animationDoRetargetingWarnings: 0 importAnimatedCustomProperties: 0 importConstraints: 0 - animationCompression: 1 + animationCompression: 3 animationRotationError: 0.5 animationPositionError: 0.5 animationScaleError: 0.5 @@ -93,13 +93,13 @@ ModelImporter: globalScale: 1 rootMotionBoneName: hasTranslationDoF: 0 - hasExtraRoot: 0 + hasExtraRoot: 1 skeletonHasParents: 1 lastHumanDescriptionAvatarSource: {instanceID: 0} autoGenerateAvatarMappingIfUnspecified: 1 - animationType: 2 + animationType: 3 humanoidOversampling: 1 - avatarSetup: 0 + avatarSetup: 1 addHumanoidExtraRootOnlyWhenUsingAvatar: 1 importBlendShapeDeformPercent: 1 remapMaterialsIfMaterialImportModeIsNone: 0 diff --git a/Assets/Art/Animator/Humanoid.controller b/Assets/Art/Animator/Humanoid.controller index ab72720..23cace1 100644 --- a/Assets/Art/Animator/Humanoid.controller +++ b/Assets/Art/Animator/Humanoid.controller @@ -1,5 +1,52 @@ %YAML 1.1 %TAG !u! tag:unity3d.com,2011: +--- !u!1101 &-6770394831173107770 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: [] + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: 7601682898943563198} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.8333334 + m_HasExitTime: 1 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 +--- !u!1101 &-5684787726316885536 +AnimatorStateTransition: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: + m_Conditions: + - m_ConditionMode: 1 + m_ConditionEvent: Debug_Roll + m_EventTreshold: 0 + m_DstStateMachine: {fileID: 0} + m_DstState: {fileID: 3051980819593247121} + m_Solo: 0 + m_Mute: 0 + m_IsExit: 0 + serializedVersion: 3 + m_TransitionDuration: 0.25 + m_TransitionOffset: 0 + m_ExitTime: 0.7494432 + m_HasExitTime: 0 + m_HasFixedDuration: 1 + m_InterruptionSource: 0 + m_OrderedInterruption: 1 + m_CanTransitionToSelf: 1 --- !u!1101 &-2413022822332482909 AnimatorStateTransition: m_ObjectHideFlags: 1 @@ -43,11 +90,11 @@ AnimatorController: m_DefaultInt: 0 m_DefaultBool: 0 m_Controller: {fileID: 9100000} - - m_Name: DEBUG_Roll + - m_Name: Debug_Roll m_Type: 9 m_DefaultFloat: 0 m_DefaultInt: 0 - m_DefaultBool: 0 + m_DefaultBool: 1 m_Controller: {fileID: 9100000} m_AnimatorLayers: - serializedVersion: 5 @@ -101,6 +148,34 @@ BlendTree: m_UseAutomaticThresholds: 1 m_NormalizedBlendValues: 0 m_BlendType: 3 +--- !u!1102 &3051980819593247121 +AnimatorState: + serializedVersion: 6 + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: mixamo_com + m_Speed: 1 + m_CycleOffset: 0 + m_Transitions: + - {fileID: -6770394831173107770} + m_StateMachineBehaviours: [] + m_Position: {x: 50, y: 50, z: 0} + m_IKOnFeet: 0 + m_WriteDefaultValues: 1 + m_Mirror: 0 + m_SpeedParameterActive: 0 + m_MirrorParameterActive: 0 + m_CycleOffsetParameterActive: 0 + m_TimeParameterActive: 0 + m_Motion: {fileID: -203655887218126122, guid: 442d2cd7da7e6f947804c626e4014efb, + type: 3} + m_Tag: + m_SpeedParameter: + m_MirrorParameter: + m_CycleOffsetParameter: + m_TimeParameter: --- !u!1102 &5025552237477777202 AnimatorState: serializedVersion: 6 @@ -140,10 +215,10 @@ AnimatorStateMachine: m_ChildStates: - serializedVersion: 1 m_State: {fileID: 7601682898943563198} - m_Position: {x: 30, y: 270, z: 0} + m_Position: {x: 350, y: 110, z: 0} - serializedVersion: 1 - m_State: {fileID: 5025552237477777202} - m_Position: {x: 330, y: 120, z: 0} + m_State: {fileID: 3051980819593247121} + m_Position: {x: 360, y: 10, z: 0} m_ChildStateMachines: [] m_AnyStateTransitions: [] m_EntryTransitions: [] @@ -165,7 +240,7 @@ AnimatorState: m_Speed: 1 m_CycleOffset: 0 m_Transitions: - - {fileID: 8528838308025900624} + - {fileID: -5684787726316885536} m_StateMachineBehaviours: [] m_Position: {x: 50, y: 50, z: 0} m_IKOnFeet: 0 diff --git a/Assets/Prefabs/Player.prefab b/Assets/Prefabs/Player.prefab new file mode 100644 index 0000000..a457997 --- /dev/null +++ b/Assets/Prefabs/Player.prefab @@ -0,0 +1,229 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &7492058951075886424 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1832712451512634858} + - component: {fileID: 1841979401022190558} + - component: {fileID: 7556791337662249603} + - component: {fileID: 155043711266299318} + - component: {fileID: 436225368274400649} + m_Layer: 10 + m_Name: Player + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1832712451512634858 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7492058951075886424} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 3042115499862081059} + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!136 &1841979401022190558 +CapsuleCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7492058951075886424} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: 0.3 + m_Height: 1.8724852 + m_Direction: 1 + m_Center: {x: 0.0054112673, y: 0.95022273, z: -0.016306937} +--- !u!54 &7556791337662249603 +Rigidbody: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7492058951075886424} + serializedVersion: 4 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: 0.05 + m_CenterOfMass: {x: 0, y: 0, z: 0} + m_InertiaTensor: {x: 1, y: 1, z: 1} + m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ImplicitCom: 1 + m_ImplicitTensor: 1 + m_UseGravity: 1 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 112 + m_CollisionDetection: 0 +--- !u!114 &155043711266299318 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7492058951075886424} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4ca3b9320dac3304ba425bd0d3952131, type: 3} + m_Name: + m_EditorClassIdentifier: + rootMotionBlending: 0 + rootMotion: {x: 0, y: 0, z: 0} + myTransform: {fileID: 0} + animatorHandler: {fileID: 0} + rigidbody: {fileID: 0} + normalCamera: {fileID: 0} + movementSpeed: 5 + rotationSpeed: 10 +--- !u!114 &436225368274400649 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7492058951075886424} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: c4a9043d6a87ed946b39b4f4cbf2c2b4, type: 3} + m_Name: + m_EditorClassIdentifier: + horizontal: 0 + vertical: 0 + moveAmount: 0 + mouseX: 0 + mouseY: 0 +--- !u!1001 &3042188380331580539 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 1832712451512634858} + m_Modifications: + - target: {fileID: 1229922237220284, guid: bbf9d2d73db526c4aa3f66acf676c574, type: 3} + propertyPath: m_Name + value: Chr_FantasyHero_Preset_40 + objectReference: {fileID: 0} + - target: {fileID: 4439670440141400, guid: bbf9d2d73db526c4aa3f66acf676c574, type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4439670440141400, guid: bbf9d2d73db526c4aa3f66acf676c574, type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4439670440141400, guid: bbf9d2d73db526c4aa3f66acf676c574, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4439670440141400, guid: bbf9d2d73db526c4aa3f66acf676c574, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 4439670440141400, guid: bbf9d2d73db526c4aa3f66acf676c574, type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 4439670440141400, guid: bbf9d2d73db526c4aa3f66acf676c574, type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 4439670440141400, guid: bbf9d2d73db526c4aa3f66acf676c574, type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 4439670440141400, guid: bbf9d2d73db526c4aa3f66acf676c574, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4439670440141400, guid: bbf9d2d73db526c4aa3f66acf676c574, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4439670440141400, guid: bbf9d2d73db526c4aa3f66acf676c574, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 95506792919036566, guid: bbf9d2d73db526c4aa3f66acf676c574, + type: 3} + propertyPath: m_Controller + value: + objectReference: {fileID: 9100000, guid: 8ceb66b9d11550e4cb0f7af887ee0d29, type: 2} + - target: {fileID: 95506792919036566, guid: bbf9d2d73db526c4aa3f66acf676c574, + type: 3} + propertyPath: m_ApplyRootMotion + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 1229922237220284, guid: bbf9d2d73db526c4aa3f66acf676c574, + type: 3} + insertIndex: -1 + addedObject: {fileID: 7066665064788977759} + m_SourcePrefab: {fileID: 100100000, guid: bbf9d2d73db526c4aa3f66acf676c574, type: 3} +--- !u!4 &3042115499862081059 stripped +Transform: + m_CorrespondingSourceObject: {fileID: 4439670440141400, guid: bbf9d2d73db526c4aa3f66acf676c574, + type: 3} + m_PrefabInstance: {fileID: 3042188380331580539} + m_PrefabAsset: {fileID: 0} +--- !u!1 &3043404948842813895 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 1229922237220284, guid: bbf9d2d73db526c4aa3f66acf676c574, + type: 3} + m_PrefabInstance: {fileID: 3042188380331580539} + m_PrefabAsset: {fileID: 0} +--- !u!114 &7066665064788977759 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3043404948842813895} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe522b80fe58504408be0232c59db82f, type: 3} + m_Name: + m_EditorClassIdentifier: + playerLocomotion: {fileID: 155043711266299318} + animator: {fileID: 3128674470046166765} + canRotate: 1 +--- !u!95 &3128674470046166765 stripped +Animator: + m_CorrespondingSourceObject: {fileID: 95506792919036566, guid: bbf9d2d73db526c4aa3f66acf676c574, + type: 3} + m_PrefabInstance: {fileID: 3042188380331580539} + m_PrefabAsset: {fileID: 0} diff --git a/Assets/Assets/polygon_assets/PolygonFantasyHeroCharacters/URP_Extract_Me.unitypackage.meta b/Assets/Prefabs/Player.prefab.meta index c270ee8..cf386b2 100644 --- a/Assets/Assets/polygon_assets/PolygonFantasyHeroCharacters/URP_Extract_Me.unitypackage.meta +++ b/Assets/Prefabs/Player.prefab.meta @@ -1,6 +1,6 @@ fileFormatVersion: 2 -guid: 49d02ab3e50665641baeb9e39ed01cca -DefaultImporter: +guid: e605747809f5707438e8bb21e40534e4 +PrefabImporter: externalObjects: {} userData: assetBundleName: diff --git a/Assets/Scripts/PlayerManager.cs b/Assets/Scripts/PlayerManager.cs new file mode 100644 index 0000000..46a2894 --- /dev/null +++ b/Assets/Scripts/PlayerManager.cs @@ -0,0 +1,8 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class PlayerManager : MonoBehaviour +{ + public Animator animator; +} diff --git a/Assets/Scripts/PlayerManager.cs.meta b/Assets/Scripts/PlayerManager.cs.meta new file mode 100644 index 0000000..ffe67fa --- /dev/null +++ b/Assets/Scripts/PlayerManager.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d83a70713ce2b6847937fd41fa2f1da5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: |
