浏览代码

Character rotation added and regenerated asset bundles

/AdsTesting
Arturo Nereu 4 年前
当前提交
f61b770d
共有 17 个文件被更改,包括 627 次插入105 次删除
  1. 5
      Assets/AddressableAssetsData/Windows/addressables_content_state.bin
  2. 60
      Assets/Art/Dino/Dino.fbx.meta
  3. 129
      Assets/Prefabs/Chest.prefab
  4. 42
      Assets/Prefabs/Player.prefab
  5. 133
      Assets/Scenes/Level_00.unity
  6. 40
      Assets/Scenes/Level_Blocking.unity
  7. 40
      Assets/Scripts/PlayerController.cs
  8. 18
      ProjectSettings/ProjectSettings.asset
  9. 8
      Assets/Animation.meta
  10. 81
      Assets/Prefabs/Key.prefab
  11. 7
      Assets/Prefabs/Key.prefab.meta
  12. 161
      Assets/Animation/DinoAnimatorController.controller
  13. 8
      Assets/Animation/DinoAnimatorController.controller.meta

5
Assets/AddressableAssetsData/Windows/addressables_content_state.bin


���� PUnity.Addressables.Editor, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null<UnityEditor.AddressableAssets.Build.AddressablesContentState playerVersion editorVersion cachedInfosremoteCatalogLoadPath cachedBundles6UnityEditor.AddressableAssets.Build.CachedAssetState[]7UnityEditor.AddressableAssets.Build.CachedBundleState[]2021.02.11.23.43.49 2019.4.18f1  4UnityEditor.AddressableAssets.Build.CachedAssetState5UnityEditor.AddressableAssets.Build.CachedBundleState 
���� PUnity.Addressables.Editor, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null<UnityEditor.AddressableAssets.Build.AddressablesContentState playerVersion editorVersion cachedInfosremoteCatalogLoadPath cachedBundles6UnityEditor.AddressableAssets.Build.CachedAssetState[]7UnityEditor.AddressableAssets.Build.CachedBundleState[]2021.02.12.17.51.07 2019.4.18f1  4UnityEditor.AddressableAssets.Build.CachedAssetState5UnityEditor.AddressableAssets.Build.CachedBundleState 
�{UnityEngine.AddressableAssets.Addressables.RuntimePath}/StandaloneWindows64/defaultlocalgroup_unitybuiltinshaders_e1984920d865c792729bfa603b50ccc1.bundle  �{UnityEngine.AddressableAssets.Addressables.RuntimePath}/StandaloneWindows64/level00_scenes_all_139ec5a4fe1e69c0df523e74fdaa5568.bundle  �https://ceded976-9f8b-45f6-9555-266c5abf1251.client-api.unity3dusercontent.com/client_api/v1/buckets/1257381c-f1d6-4244-9d65-4ee28add3a01/release_by_badge/latest/entry_by_path/content/?path=/level01_scenes_all_74c4cfcbae87416e51184f0cb9279e4b.bundle  �https://ceded976-9f8b-45f6-9555-266c5abf1251.client-api.unity3dusercontent.com/client_api/v1/buckets/1257381c-f1d6-4244-9d65-4ee28add3a01/release_by_badge/latest/entry_by_path/content/?path=/level02_scenes_all_1f4db0bb591c6c1d841a7b775436985e.bundle �https://ceded976-9f8b-45f6-9555-266c5abf1251.client-api.unity3dusercontent.com/client_api/v1/buckets/1257381c-f1d6-4244-9d65-4ee28add3a01/release_by_badge/latest/entry_by_path/content/?path=/level03_scenes_all_aed60c472d623c023efab4cf4f3ab469.bundle JUnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions m_Hashm_Crc m_Timeoutm_ChunkedTransferm_RedirectLimit m_RetryCount m_BundleName m_BundleSizem_UseCrcForCachedBundles  e03df14a9e8b5885c1d9be1202c83b3e�h�X���� a51ca88ae68e8c1a0ef32ed277b33aa8u� 62696b1ad7a0175c52e893303466f9d3Xz`����! 64f011d74e88f182d7216d359809f055K" e1984920d865c792729bfa603b50ccc1��u�����#44ca2663bd9edfc2fbd445508e464f8dc_unitybuiltinshaders:$ 139ec5a4fe1e69c0df523e74fdaa5568}�������% 54ff3eacd04bc0a414b28fa9c098ea55���& 74c4cfcbae87416e51184f0cb9279e4b�U����' 58a4cec6769f25c3fa5664e447db4be6��v( 1f4db0bb591c6c1d841a7b775436985e�������) 559ba29a65f96ca16a67ec5e513da006��v* aed60c472d623c023efab4cf4f3ab469�;������+ fd1daf39a086bc73490bd5b4b2002c56��v
�{UnityEngine.AddressableAssets.Addressables.RuntimePath}/StandaloneWindows64/defaultlocalgroup_unitybuiltinshaders_e1984920d865c792729bfa603b50ccc1.bundle  �{UnityEngine.AddressableAssets.Addressables.RuntimePath}/StandaloneWindows64/level00_scenes_all_dfdd9569f38ebdbbffba5510c09d65ed.bundle  �https://ceded976-9f8b-45f6-9555-266c5abf1251.client-api.unity3dusercontent.com/client_api/v1/buckets/1257381c-f1d6-4244-9d65-4ee28add3a01/release_by_badge/latest/entry_by_path/content/?path=/level01_scenes_all_abf94ae2a2cbd445407ce6191c32da30.bundle  �https://ceded976-9f8b-45f6-9555-266c5abf1251.client-api.unity3dusercontent.com/client_api/v1/buckets/1257381c-f1d6-4244-9d65-4ee28add3a01/release_by_badge/latest/entry_by_path/content/?path=/level02_scenes_all_5cadc2c3c8931e35b0df6d30f02d1c1c.bundle �https://ceded976-9f8b-45f6-9555-266c5abf1251.client-api.unity3dusercontent.com/client_api/v1/buckets/1257381c-f1d6-4244-9d65-4ee28add3a01/release_by_badge/latest/entry_by_path/content/?path=/level03_scenes_all_68700b9b52571d1e7f94a9fbd3e90673.bundle JUnityEngine.ResourceManagement.ResourceProviders.AssetBundleRequestOptions m_Hashm_Crc m_Timeoutm_ChunkedTransferm_RedirectLimit m_RetryCount m_BundleName m_BundleSizem_UseCrcForCachedBundles  e03df14a9e8b5885c1d9be1202c83b3e�h�X���� a51ca88ae68e8c1a0ef32ed277b33aa8u� 62696b1ad7a0175c52e893303466f9d3Xz`����! 64f011d74e88f182d7216d359809f055K" e1984920d865c792729bfa603b50ccc1��u�����#44ca2663bd9edfc2fbd445508e464f8dc_unitybuiltinshaders:$ dfdd9569f38ebdbbffba5510c09d65ed�������% 54ff3eacd04bc0a414b28fa9c098ea559�& abf94ae2a2cbd445407ce6191c32da30p������' 58a4cec6769f25c3fa5664e447db4be6��( 5cadc2c3c8931e35b0df6d30f02d1c1c�
Y�����) 559ba29a65f96ca16a67ec5e513da006��* 68700b9b52571d1e7f94a9fbd3e90673Re������+ fd1daf39a086bc73490bd5b4b2002c56��

60
Assets/Art/Dino/Dino.fbx.meta


animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
clipAnimations:
- serializedVersion: 16
name: Dino_Idle
takeName: Dino_Idle
internalID: 0
firstFrame: 0
lastFrame: 100
wrapMode: 0
orientationOffsetY: 0
level: 0
cycleOffset: 0
loop: 0
hasAdditiveReferencePose: 0
loopTime: 1
loopBlend: 0
loopBlendOrientation: 0
loopBlendPositionY: 0
loopBlendPositionXZ: 0
keepOriginalOrientation: 0
keepOriginalPositionY: 1
keepOriginalPositionXZ: 0
heightFromFeet: 0
mirror: 0
bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
curves: []
events: []
transformMask: []
maskType: 3
maskSource: {instanceID: 0}
additiveReferencePoseFrame: 0
- serializedVersion: 16
name: Dino_Jump
takeName: Dino_Jump
internalID: 0
firstFrame: 0
lastFrame: 36
wrapMode: 0
orientationOffsetY: 0
level: 0
cycleOffset: 0
loop: 0
hasAdditiveReferencePose: 0
loopTime: 1
loopBlend: 0
loopBlendOrientation: 0
loopBlendPositionY: 0
loopBlendPositionXZ: 0
keepOriginalOrientation: 0
keepOriginalPositionY: 1
keepOriginalPositionXZ: 0
heightFromFeet: 0
mirror: 0
bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
curves: []
events: []
transformMask: []
maskType: 3
maskSource: {instanceID: 0}
additiveReferencePoseFrame: 0
isReadable: 0
meshes:
lODScreenPercentages: []

129
Assets/Prefabs/Chest.prefab


serializedVersion: 6
m_Component:
- component: {fileID: 3885950393804571647}
- component: {fileID: 3885950393804571640}
- component: {fileID: 3885950393804571641}
- component: {fileID: 3885950393804571642}
- component: {fileID: 3885950393804571646}
m_Layer: 0

m_GameObject: {fileID: 3885950393804571643}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -0.31, y: 0.337, z: -3.914}
m_LocalScale: {x: 1, y: 0.65918, z: 1}
m_Children: []
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 7305718203504255015}
--- !u!33 &3885950393804571640
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3885950393804571643}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!23 &3885950393804571641
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3885950393804571643}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: 8ed2663f99adfad4684e28920782da80, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
--- !u!65 &3885950393804571642
BoxCollider:
m_ObjectHideFlags: 0

serializedVersion: 2
m_Size: {x: 2, y: 2, z: 2}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1001 &7127410966094186444
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 3885950393804571647}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 2cae7626c2bf8dc40b8dd84baea99167,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2cae7626c2bf8dc40b8dd84baea99167,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2cae7626c2bf8dc40b8dd84baea99167,
type: 3}
propertyPath: m_LocalPosition.y
value: -0.5
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2cae7626c2bf8dc40b8dd84baea99167,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2cae7626c2bf8dc40b8dd84baea99167,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2cae7626c2bf8dc40b8dd84baea99167,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2cae7626c2bf8dc40b8dd84baea99167,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2cae7626c2bf8dc40b8dd84baea99167,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2cae7626c2bf8dc40b8dd84baea99167,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2cae7626c2bf8dc40b8dd84baea99167,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2cae7626c2bf8dc40b8dd84baea99167,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 2cae7626c2bf8dc40b8dd84baea99167,
type: 3}
propertyPath: m_Name
value: Chest
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2cae7626c2bf8dc40b8dd84baea99167, type: 3}
--- !u!4 &7305718203504255015 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 2cae7626c2bf8dc40b8dd84baea99167,
type: 3}
m_PrefabInstance: {fileID: 7127410966094186444}
m_PrefabAsset: {fileID: 0}

42
Assets/Prefabs/Player.prefab


m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1946178408}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0.947, z: 0}
m_LocalPosition: {x: 0, y: -0.97321427, z: 0.021428585}
m_RootOrder: 1
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &973042119757384971
GameObject:

m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 4494805130079759893}
m_RootOrder: 2
m_RootOrder: 1
--- !u!95 &214216475
Animator:
serializedVersion: 3
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2054700875163822802}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 9100000, guid: 67370538fb35c754ba6f64bd4fe3e9a3, type: 2}
m_CullingMode: 0
m_UpdateMode: 0
m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0
m_WarningMessage:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0
--- !u!1 &4494805130079759894
GameObject:
m_ObjectHideFlags: 0

m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1713640702973489256}
- {fileID: 1946178409}
- {fileID: 1946178409}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}

m_Name:
m_EditorClassIdentifier:
m_MovementSpeed: 10
m_AnimatorController: {fileID: 214216475}
--- !u!1001 &1171686176522753923
PrefabInstance:
m_ObjectHideFlags: 0

- target: {fileID: -8679921383154817045, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalRotation.w
value: 0.7071068
value: 1
value: -0.7071068
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}

- target: {fileID: -8679921383154817045, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -90
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}

type: 3}
propertyPath: m_Materials.Array.data[0]
value:
objectReference: {fileID: 2100000, guid: 0c79e42f4ba71144697c3e0e3d43752e, type: 2}
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_Name

m_SourcePrefab: {fileID: 100100000, guid: 9f5858cf2c3ec59428254c8fff5e9130, type: 3}
--- !u!1 &2054700875163822802 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
m_PrefabInstance: {fileID: 1171686176522753923}
m_PrefabAsset: {fileID: 0}
--- !u!4 &1713640702973489256 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 9f5858cf2c3ec59428254c8fff5e9130,

133
Assets/Scenes/Level_00.unity


- target: {fileID: -8679921383154817045, guid: 1e754c2a35b93ee4cbae0274eb2bda7e,
type: 3}
propertyPath: m_RootOrder
value: 7
value: 8
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 1e754c2a35b93ee4cbae0274eb2bda7e,
type: 3}

- target: {fileID: 7702242264122354704, guid: 11482ef509975be43bcaf454f9771aed,
type: 3}
propertyPath: m_RootOrder
value: 13
value: 14
objectReference: {fileID: 0}
- target: {fileID: 7702242264122354704, guid: 11482ef509975be43bcaf454f9771aed,
type: 3}

m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 11
m_RootOrder: 12
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0}
--- !u!1001 &625552828
PrefabInstance:

- target: {fileID: -8679921383154817045, guid: e187d9285580abc418c0df2aa0bdd4f3,
type: 3}
propertyPath: m_RootOrder
value: 5
value: 6
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: e187d9285580abc418c0df2aa0bdd4f3,
type: 3}

objectReference: {fileID: 0}
- target: {fileID: -7640558969779515294, guid: e187d9285580abc418c0df2aa0bdd4f3,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7640558969779515294, guid: e187d9285580abc418c0df2aa0bdd4f3,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7146521406498821007, guid: e187d9285580abc418c0df2aa0bdd4f3,
type: 3}
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7029948723529949830, guid: e187d9285580abc418c0df2aa0bdd4f3,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7029948723529949830, guid: e187d9285580abc418c0df2aa0bdd4f3,

objectReference: {fileID: 0}
- target: {fileID: -1599826595754709761, guid: e187d9285580abc418c0df2aa0bdd4f3,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: -1599826595754709761, guid: e187d9285580abc418c0df2aa0bdd4f3,
type: 3}
propertyPath: m_StaticEditorFlags
value: 0
objectReference: {fileID: 0}

objectReference: {fileID: 0}
- target: {fileID: 8513859187771203891, guid: e187d9285580abc418c0df2aa0bdd4f3,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8513859187771203891, guid: e187d9285580abc418c0df2aa0bdd4f3,
type: 3}
propertyPath: m_StaticEditorFlags
value: 0
objectReference: {fileID: 0}

- target: {fileID: -8679921383154817045, guid: 380d56822eca0fb428c002e54147496a,
type: 3}
propertyPath: m_RootOrder
value: 4
value: 5
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 380d56822eca0fb428c002e54147496a,
type: 3}

m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 10
m_RootOrder: 11
m_LocalEulerAnglesHint: {x: 63.234, y: -42.121002, z: 78.191}
--- !u!1 &1736040039
GameObject:

- target: {fileID: -8679921383154817045, guid: 1e754c2a35b93ee4cbae0274eb2bda7e,
type: 3}
propertyPath: m_RootOrder
value: 9
value: 10
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 1e754c2a35b93ee4cbae0274eb2bda7e,
type: 3}

m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 12
m_RootOrder: 13
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1897315081
MonoBehaviour:

- target: {fileID: -8679921383154817045, guid: 1e754c2a35b93ee4cbae0274eb2bda7e,
type: 3}
propertyPath: m_RootOrder
value: 8
value: 9
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 1e754c2a35b93ee4cbae0274eb2bda7e,
type: 3}

- target: {fileID: 4494805130079759893, guid: 67db914bd437a69468c6d966454659b0,
type: 3}
propertyPath: m_RootOrder
value: 3
value: 4
objectReference: {fileID: 0}
- target: {fileID: 4494805130079759893, guid: 67db914bd437a69468c6d966454659b0,
type: 3}

propertyPath: m_Name
value: Player
objectReference: {fileID: 0}
- target: {fileID: 8083381679980500539, guid: 67db914bd437a69468c6d966454659b0,
type: 3}
propertyPath: m_MovementSpeed
value: 2.5
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 67db914bd437a69468c6d966454659b0, type: 3}
--- !u!1001 &2096555481

- target: {fileID: 3885950393804571647, guid: a49919fd62cf3f44b9ba4444a5be522e,
type: 3}
propertyPath: m_RootOrder
value: 2
value: 3
objectReference: {fileID: 0}
- target: {fileID: 3885950393804571647, guid: a49919fd62cf3f44b9ba4444a5be522e,
type: 3}

- target: {fileID: 3885950393804571647, guid: a49919fd62cf3f44b9ba4444a5be522e,
type: 3}
propertyPath: m_LocalPosition.y
value: 1.785
value: 1.973
objectReference: {fileID: 0}
- target: {fileID: 3885950393804571647, guid: a49919fd62cf3f44b9ba4444a5be522e,
type: 3}

- target: {fileID: 3885950393804571647, guid: a49919fd62cf3f44b9ba4444a5be522e,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
value: 0.7071068
objectReference: {fileID: 0}
- target: {fileID: 3885950393804571647, guid: a49919fd62cf3f44b9ba4444a5be522e,
type: 3}

- target: {fileID: 3885950393804571647, guid: a49919fd62cf3f44b9ba4444a5be522e,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
value: -0.7071068
objectReference: {fileID: 0}
- target: {fileID: 3885950393804571647, guid: a49919fd62cf3f44b9ba4444a5be522e,
type: 3}

- target: {fileID: 3885950393804571647, guid: a49919fd62cf3f44b9ba4444a5be522e,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
value: -90
objectReference: {fileID: 0}
- target: {fileID: 3885950393804571647, guid: a49919fd62cf3f44b9ba4444a5be522e,
type: 3}

- target: {fileID: 5495074216500759978, guid: 2be31233ae02d3441993b4ff8846e96f,
type: 3}
propertyPath: m_RootOrder
value: 1
value: 2
objectReference: {fileID: 0}
- target: {fileID: 5495074216500759978, guid: 2be31233ae02d3441993b4ff8846e96f,
type: 3}

- target: {fileID: -8679921383154817045, guid: 1e754c2a35b93ee4cbae0274eb2bda7e,
type: 3}
propertyPath: m_RootOrder
value: 6
value: 7
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 1e754c2a35b93ee4cbae0274eb2bda7e,
type: 3}

objectReference: {fileID: 2100000, guid: 9872efcd17f27534586b3d80a4493aad, type: 2}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 1e754c2a35b93ee4cbae0274eb2bda7e, type: 3}
--- !u!1001 &7906670936621367384
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 7024289968253537756, guid: 36ebe18f236e1de46bc8992b07028de4,
type: 3}
propertyPath: m_Name
value: Key
objectReference: {fileID: 0}
- target: {fileID: 7651785289792739174, guid: 36ebe18f236e1de46bc8992b07028de4,
type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7651785289792739174, guid: 36ebe18f236e1de46bc8992b07028de4,
type: 3}
propertyPath: m_LocalPosition.x
value: -2.439844
objectReference: {fileID: 0}
- target: {fileID: 7651785289792739174, guid: 36ebe18f236e1de46bc8992b07028de4,
type: 3}
propertyPath: m_LocalPosition.y
value: 1.87
objectReference: {fileID: 0}
- target: {fileID: 7651785289792739174, guid: 36ebe18f236e1de46bc8992b07028de4,
type: 3}
propertyPath: m_LocalPosition.z
value: 0.73052454
objectReference: {fileID: 0}
- target: {fileID: 7651785289792739174, guid: 36ebe18f236e1de46bc8992b07028de4,
type: 3}
propertyPath: m_LocalRotation.w
value: 0.5021948
objectReference: {fileID: 0}
- target: {fileID: 7651785289792739174, guid: 36ebe18f236e1de46bc8992b07028de4,
type: 3}
propertyPath: m_LocalRotation.x
value: -0.5021949
objectReference: {fileID: 0}
- target: {fileID: 7651785289792739174, guid: 36ebe18f236e1de46bc8992b07028de4,
type: 3}
propertyPath: m_LocalRotation.y
value: -0.49779552
objectReference: {fileID: 0}
- target: {fileID: 7651785289792739174, guid: 36ebe18f236e1de46bc8992b07028de4,
type: 3}
propertyPath: m_LocalRotation.z
value: -0.49779546
objectReference: {fileID: 0}
- target: {fileID: 7651785289792739174, guid: 36ebe18f236e1de46bc8992b07028de4,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -90.00001
objectReference: {fileID: 0}
- target: {fileID: 7651785289792739174, guid: 36ebe18f236e1de46bc8992b07028de4,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7651785289792739174, guid: 36ebe18f236e1de46bc8992b07028de4,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: -89.496
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 36ebe18f236e1de46bc8992b07028de4, type: 3}

40
Assets/Scenes/Level_Blocking.unity


objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 20d17ce6e4aae7d48a4b6d93cdc4727c,
type: 3}
propertyPath: m_LocalScale.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 20d17ce6e4aae7d48a4b6d93cdc4727c,
type: 3}
propertyPath: m_LocalScale.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 20d17ce6e4aae7d48a4b6d93cdc4727c,
type: 3}
propertyPath: m_LocalScale.z
value: 1
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 20d17ce6e4aae7d48a4b6d93cdc4727c,
type: 3}
propertyPath: m_LocalPosition.x
value: -0.429
objectReference: {fileID: 0}

m_Father: {fileID: 272337560}
m_RootOrder: 15
m_LocalEulerAnglesHint: {x: 4.1790004, y: -86.09701, z: 0.28500003}
--- !u!1 &2044461405 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
m_PrefabInstance: {fileID: 1922400101}
m_PrefabAsset: {fileID: 0}
--- !u!95 &2044461406
Animator:
serializedVersion: 3
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2044461405}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 9100000, guid: 67370538fb35c754ba6f64bd4fe3e9a3, type: 2}
m_CullingMode: 0
m_UpdateMode: 0
m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0
m_WarningMessage:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0
--- !u!1 &2115379736
GameObject:
m_ObjectHideFlags: 0

40
Assets/Scripts/PlayerController.cs


private Rigidbody m_Rigidbody;
[SerializeField]
private Animator m_AnimatorController;
private int m_VelocityHash = Animator.StringToHash("Velocity");
// Start is called before the first frame update
void Start()
{

// Cache the string value
if (other.CompareTag("Chest"))
{
Debug.Log("Triggered by a chest");
m_HasKey = true;
KeyCollected();
}
if (other.CompareTag("Door"))

// Update is called once per frame
void Update()
{
if(Input.GetKey(KeyCode.LeftArrow))
float xMovement = m_MovementSpeed * Input.GetAxis("Horizontal");
float zMovement = m_MovementSpeed * Input.GetAxis("Vertical");
// TODO: Refactor this
if(xMovement < 0)
var targetPosition = transform.position + Vector3.left * m_MovementSpeed * Time.deltaTime;
m_Rigidbody.MovePosition(targetPosition);
m_Rigidbody.rotation = Quaternion.Euler(0, -90, 0);
if (Input.GetKey(KeyCode.RightArrow))
else if(xMovement > 0)
var targetPosition = transform.position + Vector3.right * m_MovementSpeed * Time.deltaTime;
m_Rigidbody.MovePosition(targetPosition);
m_Rigidbody.rotation = Quaternion.Euler(0, 90, 0);
if (Input.GetKey(KeyCode.UpArrow))
else if(zMovement < 0)
var targetPosition = transform.position + Vector3.forward * m_MovementSpeed * Time.deltaTime;
m_Rigidbody.MovePosition(targetPosition);
m_Rigidbody.rotation = Quaternion.Euler(0, 180, 0);
if (Input.GetKey(KeyCode.DownArrow))
else if(zMovement > 0)
var targetPosition = transform.position + Vector3.back * m_MovementSpeed * Time.deltaTime;
m_Rigidbody.MovePosition(targetPosition);
m_Rigidbody.rotation = Quaternion.Euler(0, 0, 0);
m_Rigidbody.velocity = new Vector3(xMovement, 0, zMovement);
//
m_AnimatorController.SetFloat(m_VelocityHash, m_Rigidbody.velocity.magnitude);
}
}

18
ProjectSettings/ProjectSettings.asset


m_SplashScreenLogos: []
m_VirtualRealitySplashScreen: {fileID: 0}
m_HolographicTrackingLossScreen: {fileID: 0}
defaultScreenWidth: 1024
defaultScreenHeight: 768
defaultScreenWidth: 900
defaultScreenHeight: 1600
defaultScreenWidthWeb: 960
defaultScreenHeightWeb: 600
m_StereoRenderingPath: 0

xboxEnableKinectAutoTracking: 0
xboxEnableFitness: 0
visibleInBackground: 1
allowFullscreenSwitch: 1
fullscreenMode: 1
allowFullscreenSwitch: 0
fullscreenMode: 3
xboxSpeechDB: 0
xboxEnableHeadOrientation: 0
xboxEnableGuest: 0

vulkanEnableSetSRGBWrite: 0
vulkanEnableLateAcquireNextImage: 0
m_SupportedAspectRatios:
4:3: 1
5:4: 1
16:10: 1
16:9: 1
Others: 1
4:3: 0
5:4: 0
16:10: 0
16:9: 0
Others: 0
bundleVersion: 0.1
preloadedAssets: []
metroInputSource: 0

8
Assets/Animation.meta


fileFormatVersion: 2
guid: 977ba0944d06ab042a79385e0f6aeac7
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

81
Assets/Prefabs/Key.prefab


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &7024289968253537756
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7651785289792739174}
- component: {fileID: 6746183039743219907}
- component: {fileID: 8825849048276151305}
m_Layer: 0
m_Name: Key
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &7651785289792739174
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7024289968253537756}
m_LocalRotation: {x: -0.5021949, y: -0.49779552, z: -0.49779546, w: 0.5021948}
m_LocalPosition: {x: -2.439844, y: 1.87, z: 0.73052454}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: -90.00001, y: 0, z: -89.496}
--- !u!33 &6746183039743219907
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7024289968253537756}
m_Mesh: {fileID: 4493585093827132993, guid: 20d17ce6e4aae7d48a4b6d93cdc4727c, type: 3}
--- !u!23 &8825849048276151305
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7024289968253537756}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: b7f33961f96d484499228abf05199cdb, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0

7
Assets/Prefabs/Key.prefab.meta


fileFormatVersion: 2
guid: 36ebe18f236e1de46bc8992b07028de4
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

161
Assets/Animation/DinoAnimatorController.controller


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1107 &-4409817418978844513
AnimatorStateMachine:
serializedVersion: 5
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Base Layer
m_ChildStates:
- serializedVersion: 1
m_State: {fileID: 2495261241851050561}
m_Position: {x: 30, y: 280, z: 0}
- serializedVersion: 1
m_State: {fileID: 8128949639950065158}
m_Position: {x: 290, y: 280, z: 0}
m_ChildStateMachines: []
m_AnyStateTransitions: []
m_EntryTransitions: []
m_StateMachineTransitions: {}
m_StateMachineBehaviours: []
m_AnyStatePosition: {x: 50, y: 20, z: 0}
m_EntryPosition: {x: 50, y: 120, z: 0}
m_ExitPosition: {x: 800, y: 120, z: 0}
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
m_DefaultState: {fileID: 2495261241851050561}
--- !u!91 &9100000
AnimatorController:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: DinoAnimatorController
serializedVersion: 5
m_AnimatorParameters:
- m_Name: Velocity
m_Type: 1
m_DefaultFloat: 0
m_DefaultInt: 0
m_DefaultBool: 0
m_Controller: {fileID: 0}
m_AnimatorLayers:
- serializedVersion: 5
m_Name: Base Layer
m_StateMachine: {fileID: -4409817418978844513}
m_Mask: {fileID: 0}
m_Motions: []
m_Behaviours: []
m_BlendingMode: 0
m_SyncedLayerIndex: -1
m_DefaultWeight: 0
m_IKPass: 0
m_SyncedLayerAffectsTiming: 0
m_Controller: {fileID: 9100000}
--- !u!1102 &2495261241851050561
AnimatorState:
serializedVersion: 5
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Dino_Idle
m_Speed: 1
m_CycleOffset: 0
m_Transitions:
- {fileID: 6686070008982087056}
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: -2973692001367142872, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
m_CycleOffsetParameter:
m_TimeParameter:
--- !u!1101 &6686070008982087056
AnimatorStateTransition:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name:
m_Conditions:
- m_ConditionMode: 3
m_ConditionEvent: Velocity
m_EventTreshold: 0.1
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: 8128949639950065158}
m_Solo: 0
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0.05790329
m_TransitionOffset: 0
m_ExitTime: 0.925
m_HasExitTime: 0
m_HasFixedDuration: 1
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1
--- !u!1101 &7093045581592580193
AnimatorStateTransition:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name:
m_Conditions:
- m_ConditionMode: 4
m_ConditionEvent: Velocity
m_EventTreshold: 0.1
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: 2495261241851050561}
m_Solo: 0
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0.15395159
m_TransitionOffset: 0
m_ExitTime: 0.7916667
m_HasExitTime: 0
m_HasFixedDuration: 1
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1
--- !u!1102 &8128949639950065158
AnimatorState:
serializedVersion: 5
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Dino_Jump
m_Speed: 1
m_CycleOffset: 0
m_Transitions:
- {fileID: 7093045581592580193}
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: -852386184351015931, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
m_CycleOffsetParameter:
m_TimeParameter:

8
Assets/Animation/DinoAnimatorController.controller.meta


fileFormatVersion: 2
guid: 67370538fb35c754ba6f64bd4fe3e9a3
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

部分文件因为文件数量过多而无法显示

正在加载...
取消
保存