Jump and other bugs fixed. Reflections added.
This commit is contained in:
parent
4438aa53fc
commit
5cd7de4d3b
@ -66,9 +66,9 @@ Material:
|
|||||||
- _DetailNormalMapScale: 1
|
- _DetailNormalMapScale: 1
|
||||||
- _DstBlend: 0
|
- _DstBlend: 0
|
||||||
- _GlossMapScale: 1
|
- _GlossMapScale: 1
|
||||||
- _Glossiness: 0.5
|
- _Glossiness: 0.768
|
||||||
- _GlossyReflections: 1
|
- _GlossyReflections: 1
|
||||||
- _Metallic: 0
|
- _Metallic: 0.281
|
||||||
- _Mode: 0
|
- _Mode: 0
|
||||||
- _OcclusionStrength: 1
|
- _OcclusionStrength: 1
|
||||||
- _Parallax: 0.02
|
- _Parallax: 0.02
|
||||||
|
@ -98,12 +98,12 @@ Material:
|
|||||||
- _EnableDetailMask: 0
|
- _EnableDetailMask: 0
|
||||||
- _EnableTriplanarProjection: 1
|
- _EnableTriplanarProjection: 1
|
||||||
- _GlossMapScale: 1
|
- _GlossMapScale: 1
|
||||||
- _Glossiness: 0
|
- _Glossiness: 0.6
|
||||||
- _GlossyReflections: 1
|
- _GlossyReflections: 1
|
||||||
- _IntensityMask: 1
|
- _IntensityMask: 1
|
||||||
- _InvertABaseColor: 0
|
- _InvertABaseColor: 0
|
||||||
- _InvertMask: 0
|
- _InvertMask: 0
|
||||||
- _Metallic: 0
|
- _Metallic: 1
|
||||||
- _Mode: 0
|
- _Mode: 0
|
||||||
- _OcclusionStrength: 1
|
- _OcclusionStrength: 1
|
||||||
- _Parallax: 0.02
|
- _Parallax: 0.02
|
||||||
@ -124,7 +124,7 @@ Material:
|
|||||||
- _ZWrite: 1
|
- _ZWrite: 1
|
||||||
- __dirty: 1
|
- __dirty: 1
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _Color: {r: 0.604028, g: 0.29641223, b: 0.93185335, a: 1}
|
- _Color: {r: 0.078431375, g: 0.078431375, b: 0.3529412, a: 1}
|
||||||
- _DetailColor: {r: 1, g: 1, b: 1, a: 0}
|
- _DetailColor: {r: 1, g: 1, b: 1, a: 0}
|
||||||
- _DetailSpecularColor: {r: 1, g: 1, b: 1, a: 0}
|
- _DetailSpecularColor: {r: 1, g: 1, b: 1, a: 0}
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
@ -31,7 +31,36 @@ ModelImporter:
|
|||||||
animationWrapMode: 0
|
animationWrapMode: 0
|
||||||
extraExposedTransformPaths: []
|
extraExposedTransformPaths: []
|
||||||
extraUserProperties: []
|
extraUserProperties: []
|
||||||
clipAnimations: []
|
clipAnimations:
|
||||||
|
- serializedVersion: 16
|
||||||
|
name: Take 001
|
||||||
|
takeName: Take 001
|
||||||
|
internalID: 1827226128182048838
|
||||||
|
firstFrame: 0
|
||||||
|
lastFrame: 48
|
||||||
|
wrapMode: 0
|
||||||
|
orientationOffsetY: 0
|
||||||
|
level: 0
|
||||||
|
cycleOffset: 0
|
||||||
|
loop: 0
|
||||||
|
hasAdditiveReferencePose: 0
|
||||||
|
loopTime: 1
|
||||||
|
loopBlend: 1
|
||||||
|
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
|
isReadable: 0
|
||||||
meshes:
|
meshes:
|
||||||
lODScreenPercentages: []
|
lODScreenPercentages: []
|
||||||
|
@ -4732,6 +4732,112 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 2462cdf4232689348b55306d2ba109b3, type: 3}
|
m_Script: {fileID: 11500000, guid: 2462cdf4232689348b55306d2ba109b3, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!1 &1503182647481209801
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4928003940634146410}
|
||||||
|
- component: {fileID: 1916204892490881778}
|
||||||
|
- component: {fileID: 2826849012153582808}
|
||||||
|
- component: {fileID: 2663149802334792068}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Ceiling1
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &4928003940634146410
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1503182647481209801}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 1, y: 0, z: 0, w: 0}
|
||||||
|
m_LocalPosition: {x: 0, y: 3.25, z: -60.3131}
|
||||||
|
m_LocalScale: {x: 0.4, y: 1, z: 3.5991447}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 6913307430280152876}
|
||||||
|
m_LocalEulerAnglesHint: {x: 180, y: 0, z: 0}
|
||||||
|
--- !u!33 &1916204892490881778
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1503182647481209801}
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &2826849012153582808
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1503182647481209801}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: c4a4afe7921aa2f4582fccd2bd7f1efa, 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
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!64 &2663149802334792068
|
||||||
|
MeshCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1503182647481209801}
|
||||||
|
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: 5
|
||||||
|
m_Convex: 0
|
||||||
|
m_CookingOptions: 30
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
--- !u!1 &1538645411020750672
|
--- !u!1 &1538645411020750672
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -9481,8 +9587,6 @@ MeshRenderer:
|
|||||||
m_RendererPriority: 0
|
m_RendererPriority: 0
|
||||||
m_Materials:
|
m_Materials:
|
||||||
- {fileID: 2100000, guid: c4a4afe7921aa2f4582fccd2bd7f1efa, type: 2}
|
- {fileID: 2100000, guid: c4a4afe7921aa2f4582fccd2bd7f1efa, type: 2}
|
||||||
- {fileID: 2100000, guid: bd4a01711df9d8d43a627cfa7fd3d2cf, type: 2}
|
|
||||||
- {fileID: 2100000, guid: 7de1de522cb61da478c940b69f18f92f, type: 2}
|
|
||||||
m_StaticBatchInfo:
|
m_StaticBatchInfo:
|
||||||
firstSubMesh: 0
|
firstSubMesh: 0
|
||||||
subMeshCount: 0
|
subMeshCount: 0
|
||||||
@ -29792,6 +29896,112 @@ Transform:
|
|||||||
- {fileID: 4874534950052537474}
|
- {fileID: 4874534950052537474}
|
||||||
m_Father: {fileID: 3244248915834602008}
|
m_Father: {fileID: 3244248915834602008}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &8032879297799352026
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4851695788870284154}
|
||||||
|
- component: {fileID: 7978029044299827607}
|
||||||
|
- component: {fileID: 2302440476849691917}
|
||||||
|
- component: {fileID: 6937332075844470378}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Ceiling1 (2)
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &4851695788870284154
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8032879297799352026}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0.9640955, y: -0, z: -0, w: -0.2655561}
|
||||||
|
m_LocalPosition: {x: 0, y: 1.6612, z: -39.1256}
|
||||||
|
m_LocalScale: {x: 0.4, y: 1, z: 0.5991078}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 6913307430280152876}
|
||||||
|
m_LocalEulerAnglesHint: {x: 210.8, y: 0, z: 0}
|
||||||
|
--- !u!33 &7978029044299827607
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8032879297799352026}
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &2302440476849691917
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8032879297799352026}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: c4a4afe7921aa2f4582fccd2bd7f1efa, 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
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!64 &6937332075844470378
|
||||||
|
MeshCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8032879297799352026}
|
||||||
|
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: 5
|
||||||
|
m_Convex: 0
|
||||||
|
m_CookingOptions: 30
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
--- !u!1 &8063127573281326665
|
--- !u!1 &8063127573281326665
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -31029,6 +31239,112 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
coinValue: 1
|
coinValue: 1
|
||||||
|
--- !u!1 &8438066805888565654
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 5639131978360354396}
|
||||||
|
- component: {fileID: 1027313597247106153}
|
||||||
|
- component: {fileID: 5408630891877976584}
|
||||||
|
- component: {fileID: 6292904499166689579}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Ceiling1 (1)
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &5639131978360354396
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8438066805888565654}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 1, y: 0, z: 0, w: 0}
|
||||||
|
m_LocalPosition: {x: 0, y: -0.315, z: -18.9}
|
||||||
|
m_LocalScale: {x: 0.4, y: 1, z: 3.5991447}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 6913307430280152876}
|
||||||
|
m_LocalEulerAnglesHint: {x: 180, y: 0, z: 0}
|
||||||
|
--- !u!33 &1027313597247106153
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8438066805888565654}
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &5408630891877976584
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8438066805888565654}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: c4a4afe7921aa2f4582fccd2bd7f1efa, 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
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!64 &6292904499166689579
|
||||||
|
MeshCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8438066805888565654}
|
||||||
|
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: 5
|
||||||
|
m_Convex: 0
|
||||||
|
m_CookingOptions: 30
|
||||||
|
m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
--- !u!1 &8447940966101528064
|
--- !u!1 &8447940966101528064
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -31399,6 +31715,9 @@ Transform:
|
|||||||
- {fileID: 4295604883980422208}
|
- {fileID: 4295604883980422208}
|
||||||
- {fileID: 5711583358438238382}
|
- {fileID: 5711583358438238382}
|
||||||
- {fileID: 7345710577066718957}
|
- {fileID: 7345710577066718957}
|
||||||
|
- {fileID: 4928003940634146410}
|
||||||
|
- {fileID: 4851695788870284154}
|
||||||
|
- {fileID: 5639131978360354396}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
|
||||||
--- !u!1 &8541625346551557757
|
--- !u!1 &8541625346551557757
|
||||||
|
BIN
Assets/SK_Zibu (2).fbx
Normal file
BIN
Assets/SK_Zibu (2).fbx
Normal file
Binary file not shown.
109
Assets/SK_Zibu (2).fbx.meta
Normal file
109
Assets/SK_Zibu (2).fbx.meta
Normal file
@ -0,0 +1,109 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 93c4c5703d0544e46ba61eb04dbdaca9
|
||||||
|
ModelImporter:
|
||||||
|
serializedVersion: 22200
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
materials:
|
||||||
|
materialImportMode: 2
|
||||||
|
materialName: 0
|
||||||
|
materialSearch: 1
|
||||||
|
materialLocation: 1
|
||||||
|
animations:
|
||||||
|
legacyGenerateAnimations: 4
|
||||||
|
bakeSimulation: 0
|
||||||
|
resampleCurves: 1
|
||||||
|
optimizeGameObjects: 0
|
||||||
|
removeConstantScaleCurves: 0
|
||||||
|
motionNodeName:
|
||||||
|
rigImportErrors:
|
||||||
|
rigImportWarnings:
|
||||||
|
animationImportErrors:
|
||||||
|
animationImportWarnings:
|
||||||
|
animationRetargetingWarnings:
|
||||||
|
animationDoRetargetingWarnings: 0
|
||||||
|
importAnimatedCustomProperties: 0
|
||||||
|
importConstraints: 0
|
||||||
|
animationCompression: 1
|
||||||
|
animationRotationError: 0.5
|
||||||
|
animationPositionError: 0.5
|
||||||
|
animationScaleError: 0.5
|
||||||
|
animationWrapMode: 0
|
||||||
|
extraExposedTransformPaths: []
|
||||||
|
extraUserProperties: []
|
||||||
|
clipAnimations: []
|
||||||
|
isReadable: 0
|
||||||
|
meshes:
|
||||||
|
lODScreenPercentages: []
|
||||||
|
globalScale: 0.25
|
||||||
|
meshCompression: 0
|
||||||
|
addColliders: 0
|
||||||
|
useSRGBMaterialColor: 1
|
||||||
|
sortHierarchyByName: 1
|
||||||
|
importPhysicalCameras: 1
|
||||||
|
importVisibility: 1
|
||||||
|
importBlendShapes: 1
|
||||||
|
importCameras: 1
|
||||||
|
importLights: 1
|
||||||
|
nodeNameCollisionStrategy: 1
|
||||||
|
fileIdsGeneration: 2
|
||||||
|
swapUVChannels: 0
|
||||||
|
generateSecondaryUV: 0
|
||||||
|
useFileUnits: 1
|
||||||
|
keepQuads: 0
|
||||||
|
weldVertices: 1
|
||||||
|
bakeAxisConversion: 0
|
||||||
|
preserveHierarchy: 0
|
||||||
|
skinWeightsMode: 0
|
||||||
|
maxBonesPerVertex: 4
|
||||||
|
minBoneWeight: 0.001
|
||||||
|
optimizeBones: 1
|
||||||
|
meshOptimizationFlags: -1
|
||||||
|
indexFormat: 0
|
||||||
|
secondaryUVAngleDistortion: 8
|
||||||
|
secondaryUVAreaDistortion: 15.000001
|
||||||
|
secondaryUVHardAngle: 88
|
||||||
|
secondaryUVMarginMethod: 1
|
||||||
|
secondaryUVMinLightmapResolution: 40
|
||||||
|
secondaryUVMinObjectScale: 1
|
||||||
|
secondaryUVPackMargin: 4
|
||||||
|
useFileScale: 1
|
||||||
|
strictVertexDataChecks: 0
|
||||||
|
tangentSpace:
|
||||||
|
normalSmoothAngle: 60
|
||||||
|
normalImportMode: 0
|
||||||
|
tangentImportMode: 3
|
||||||
|
normalCalculationMode: 4
|
||||||
|
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
||||||
|
blendShapeNormalImportMode: 1
|
||||||
|
normalSmoothingSource: 0
|
||||||
|
referencedClips: []
|
||||||
|
importAnimation: 1
|
||||||
|
humanDescription:
|
||||||
|
serializedVersion: 3
|
||||||
|
human: []
|
||||||
|
skeleton: []
|
||||||
|
armTwist: 0.5
|
||||||
|
foreArmTwist: 0.5
|
||||||
|
upperLegTwist: 0.5
|
||||||
|
legTwist: 0.5
|
||||||
|
armStretch: 0.05
|
||||||
|
legStretch: 0.05
|
||||||
|
feetSpacing: 0
|
||||||
|
globalScale: 0.0025
|
||||||
|
rootMotionBoneName:
|
||||||
|
hasTranslationDoF: 0
|
||||||
|
hasExtraRoot: 0
|
||||||
|
skeletonHasParents: 1
|
||||||
|
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||||
|
autoGenerateAvatarMappingIfUnspecified: 1
|
||||||
|
animationType: 2
|
||||||
|
humanoidOversampling: 1
|
||||||
|
avatarSetup: 0
|
||||||
|
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
|
||||||
|
importBlendShapeDeformPercent: 1
|
||||||
|
remapMaterialsIfMaterialImportModeIsNone: 0
|
||||||
|
additionalBone: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -169,40 +169,6 @@ Transform:
|
|||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
--- !u!21 &78807753
|
|
||||||
Material:
|
|
||||||
serializedVersion: 8
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: Custom/EmissiveLaser
|
|
||||||
m_Shader: {fileID: 4800000, guid: 69d193eb1566e62409de769d5c16fef2, type: 3}
|
|
||||||
m_Parent: {fileID: 0}
|
|
||||||
m_ModifiedSerializedProperties: 0
|
|
||||||
m_ValidKeywords: []
|
|
||||||
m_InvalidKeywords: []
|
|
||||||
m_LightmapFlags: 4
|
|
||||||
m_EnableInstancingVariants: 0
|
|
||||||
m_DoubleSidedGI: 0
|
|
||||||
m_CustomRenderQueue: -1
|
|
||||||
stringTagMap: {}
|
|
||||||
disabledShaderPasses: []
|
|
||||||
m_LockedProperties:
|
|
||||||
m_SavedProperties:
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TexEnvs:
|
|
||||||
- _MainTex:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
m_Ints: []
|
|
||||||
m_Floats:
|
|
||||||
- _Emission: 2
|
|
||||||
- _ScrollSpeed: 1
|
|
||||||
m_Colors:
|
|
||||||
- _Color: {r: 1, g: 0, b: 0, a: 1}
|
|
||||||
m_BuildTextureStacks: []
|
|
||||||
--- !u!1 &149428110
|
--- !u!1 &149428110
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -516,6 +482,40 @@ CanvasRenderer:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 293277035}
|
m_GameObject: {fileID: 293277035}
|
||||||
m_CullTransparentMesh: 1
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!21 &454131974
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Custom/EmissiveLaser
|
||||||
|
m_Shader: {fileID: 4800000, guid: 69d193eb1566e62409de769d5c16fef2, type: 3}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _Emission: 2
|
||||||
|
- _ScrollSpeed: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 1, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
--- !u!1 &508969155
|
--- !u!1 &508969155
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -811,109 +811,7 @@ CanvasRenderer:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 721204258}
|
m_GameObject: {fileID: 721204258}
|
||||||
m_CullTransparentMesh: 1
|
m_CullTransparentMesh: 1
|
||||||
--- !u!21 &926047953
|
--- !u!21 &1110023344
|
||||||
Material:
|
|
||||||
serializedVersion: 8
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: Custom/EmissiveLaser
|
|
||||||
m_Shader: {fileID: 4800000, guid: 69d193eb1566e62409de769d5c16fef2, type: 3}
|
|
||||||
m_Parent: {fileID: 0}
|
|
||||||
m_ModifiedSerializedProperties: 0
|
|
||||||
m_ValidKeywords: []
|
|
||||||
m_InvalidKeywords: []
|
|
||||||
m_LightmapFlags: 4
|
|
||||||
m_EnableInstancingVariants: 0
|
|
||||||
m_DoubleSidedGI: 0
|
|
||||||
m_CustomRenderQueue: -1
|
|
||||||
stringTagMap: {}
|
|
||||||
disabledShaderPasses: []
|
|
||||||
m_LockedProperties:
|
|
||||||
m_SavedProperties:
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TexEnvs:
|
|
||||||
- _MainTex:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
m_Ints: []
|
|
||||||
m_Floats:
|
|
||||||
- _Emission: 2
|
|
||||||
- _ScrollSpeed: 1
|
|
||||||
m_Colors:
|
|
||||||
- _Color: {r: 1, g: 0, b: 0, a: 1}
|
|
||||||
m_BuildTextureStacks: []
|
|
||||||
--- !u!21 &964966095
|
|
||||||
Material:
|
|
||||||
serializedVersion: 8
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: Custom/EmissiveLaser
|
|
||||||
m_Shader: {fileID: 4800000, guid: 69d193eb1566e62409de769d5c16fef2, type: 3}
|
|
||||||
m_Parent: {fileID: 0}
|
|
||||||
m_ModifiedSerializedProperties: 0
|
|
||||||
m_ValidKeywords: []
|
|
||||||
m_InvalidKeywords: []
|
|
||||||
m_LightmapFlags: 4
|
|
||||||
m_EnableInstancingVariants: 0
|
|
||||||
m_DoubleSidedGI: 0
|
|
||||||
m_CustomRenderQueue: -1
|
|
||||||
stringTagMap: {}
|
|
||||||
disabledShaderPasses: []
|
|
||||||
m_LockedProperties:
|
|
||||||
m_SavedProperties:
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TexEnvs:
|
|
||||||
- _MainTex:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
m_Ints: []
|
|
||||||
m_Floats:
|
|
||||||
- _Emission: 2
|
|
||||||
- _ScrollSpeed: 1
|
|
||||||
m_Colors:
|
|
||||||
- _Color: {r: 1, g: 0, b: 0, a: 1}
|
|
||||||
m_BuildTextureStacks: []
|
|
||||||
--- !u!21 &1055930635
|
|
||||||
Material:
|
|
||||||
serializedVersion: 8
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_Name: Custom/EmissiveLaser
|
|
||||||
m_Shader: {fileID: 4800000, guid: 69d193eb1566e62409de769d5c16fef2, type: 3}
|
|
||||||
m_Parent: {fileID: 0}
|
|
||||||
m_ModifiedSerializedProperties: 0
|
|
||||||
m_ValidKeywords: []
|
|
||||||
m_InvalidKeywords: []
|
|
||||||
m_LightmapFlags: 4
|
|
||||||
m_EnableInstancingVariants: 0
|
|
||||||
m_DoubleSidedGI: 0
|
|
||||||
m_CustomRenderQueue: -1
|
|
||||||
stringTagMap: {}
|
|
||||||
disabledShaderPasses: []
|
|
||||||
m_LockedProperties:
|
|
||||||
m_SavedProperties:
|
|
||||||
serializedVersion: 3
|
|
||||||
m_TexEnvs:
|
|
||||||
- _MainTex:
|
|
||||||
m_Texture: {fileID: 0}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
|
||||||
m_Offset: {x: 0, y: 0}
|
|
||||||
m_Ints: []
|
|
||||||
m_Floats:
|
|
||||||
- _Emission: 2
|
|
||||||
- _ScrollSpeed: 1
|
|
||||||
m_Colors:
|
|
||||||
- _Color: {r: 1, g: 0, b: 0, a: 1}
|
|
||||||
m_BuildTextureStacks: []
|
|
||||||
--- !u!21 &1111367101
|
|
||||||
Material:
|
Material:
|
||||||
serializedVersion: 8
|
serializedVersion: 8
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -963,7 +861,7 @@ GameObject:
|
|||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 0
|
m_IsActive: 1
|
||||||
--- !u!215 &1117356489
|
--- !u!215 &1117356489
|
||||||
ReflectionProbe:
|
ReflectionProbe:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -1012,6 +910,40 @@ Transform:
|
|||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!21 &1216139865
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Custom/EmissiveLaser
|
||||||
|
m_Shader: {fileID: 4800000, guid: 69d193eb1566e62409de769d5c16fef2, type: 3}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _Emission: 2
|
||||||
|
- _ScrollSpeed: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 1, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
--- !u!1 &1222225062
|
--- !u!1 &1222225062
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -1146,7 +1078,7 @@ CanvasRenderer:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1222225062}
|
m_GameObject: {fileID: 1222225062}
|
||||||
m_CullTransparentMesh: 1
|
m_CullTransparentMesh: 1
|
||||||
--- !u!21 &1252002874
|
--- !u!21 &1425564048
|
||||||
Material:
|
Material:
|
||||||
serializedVersion: 8
|
serializedVersion: 8
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -1180,7 +1112,7 @@ Material:
|
|||||||
m_Colors:
|
m_Colors:
|
||||||
- _Color: {r: 1, g: 0, b: 0, a: 1}
|
- _Color: {r: 1, g: 0, b: 0, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
--- !u!21 &1384802799
|
--- !u!21 &1439335288
|
||||||
Material:
|
Material:
|
||||||
serializedVersion: 8
|
serializedVersion: 8
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -1228,7 +1160,7 @@ PrefabInstance:
|
|||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: -8679921383154817045, guid: 2c04b8261d21a8e45852e1e050858e41, type: 3}
|
- target: {fileID: -8679921383154817045, guid: 2c04b8261d21a8e45852e1e050858e41, type: 3}
|
||||||
propertyPath: m_LocalPosition.y
|
propertyPath: m_LocalPosition.y
|
||||||
value: 0.65
|
value: 0.69
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: -8679921383154817045, guid: 2c04b8261d21a8e45852e1e050858e41, type: 3}
|
- target: {fileID: -8679921383154817045, guid: 2c04b8261d21a8e45852e1e050858e41, type: 3}
|
||||||
propertyPath: m_LocalPosition.z
|
propertyPath: m_LocalPosition.z
|
||||||
@ -1314,10 +1246,10 @@ PrefabInstance:
|
|||||||
addedObject: {fileID: 1704108064}
|
addedObject: {fileID: 1704108064}
|
||||||
- targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 2c04b8261d21a8e45852e1e050858e41, type: 3}
|
- targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 2c04b8261d21a8e45852e1e050858e41, type: 3}
|
||||||
insertIndex: -1
|
insertIndex: -1
|
||||||
addedObject: {fileID: 1704108065}
|
addedObject: {fileID: 1704108066}
|
||||||
- targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 2c04b8261d21a8e45852e1e050858e41, type: 3}
|
- targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 2c04b8261d21a8e45852e1e050858e41, type: 3}
|
||||||
insertIndex: -1
|
insertIndex: -1
|
||||||
addedObject: {fileID: 1704108066}
|
addedObject: {fileID: 1704108065}
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 2c04b8261d21a8e45852e1e050858e41, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 2c04b8261d21a8e45852e1e050858e41, type: 3}
|
||||||
--- !u!1 &1704108061 stripped
|
--- !u!1 &1704108061 stripped
|
||||||
GameObject:
|
GameObject:
|
||||||
@ -1362,9 +1294,10 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 95f58092001c9c1448054a740b29f6a6, type: 3}
|
m_Script: {fileID: 11500000, guid: 95f58092001c9c1448054a740b29f6a6, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
moveSpeed: -1
|
moveSpeed: 1
|
||||||
laneDistance: 0.4
|
laneDistance: 0.4
|
||||||
jumpForce: 4
|
jumpPower: 0.6
|
||||||
|
jumpDuration: 1.2
|
||||||
laneSwitchSpeed: 10
|
laneSwitchSpeed: 10
|
||||||
--- !u!65 &1704108065
|
--- !u!65 &1704108065
|
||||||
BoxCollider:
|
BoxCollider:
|
||||||
@ -1745,6 +1678,40 @@ MonoBehaviour:
|
|||||||
m_BeforeTransparentBundles: []
|
m_BeforeTransparentBundles: []
|
||||||
m_BeforeStackBundles: []
|
m_BeforeStackBundles: []
|
||||||
m_AfterStackBundles: []
|
m_AfterStackBundles: []
|
||||||
|
--- !u!21 &1827233974
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Custom/EmissiveLaser
|
||||||
|
m_Shader: {fileID: 4800000, guid: 69d193eb1566e62409de769d5c16fef2, type: 3}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _Emission: 2
|
||||||
|
- _ScrollSpeed: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 1, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
--- !u!1 &1850953449
|
--- !u!1 &1850953449
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -1843,6 +1810,40 @@ Transform:
|
|||||||
- {fileID: 682158478}
|
- {fileID: 682158478}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!21 &2058832075
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Custom/EmissiveLaser
|
||||||
|
m_Shader: {fileID: 4800000, guid: 69d193eb1566e62409de769d5c16fef2, type: 3}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _Emission: 2
|
||||||
|
- _ScrollSpeed: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 1, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
--- !u!1 &2060206371
|
--- !u!1 &2060206371
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -1977,7 +1978,7 @@ CanvasRenderer:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 2060206371}
|
m_GameObject: {fileID: 2060206371}
|
||||||
m_CullTransparentMesh: 1
|
m_CullTransparentMesh: 1
|
||||||
--- !u!21 &2100911248
|
--- !u!21 &2070398364
|
||||||
Material:
|
Material:
|
||||||
serializedVersion: 8
|
serializedVersion: 8
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@ -2022,31 +2023,31 @@ PrefabInstance:
|
|||||||
- target: {fileID: 48441560186680580, guid: aef2a50dc2159e44584497dfc2fdaeb2, type: 3}
|
- target: {fileID: 48441560186680580, guid: aef2a50dc2159e44584497dfc2fdaeb2, type: 3}
|
||||||
propertyPath: m_Materials.Array.data[0]
|
propertyPath: m_Materials.Array.data[0]
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 926047953}
|
objectReference: {fileID: 2058832075}
|
||||||
- target: {fileID: 335870137415783586, guid: aef2a50dc2159e44584497dfc2fdaeb2, type: 3}
|
- target: {fileID: 335870137415783586, guid: aef2a50dc2159e44584497dfc2fdaeb2, type: 3}
|
||||||
propertyPath: m_Materials.Array.data[0]
|
propertyPath: m_Materials.Array.data[0]
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 2100911248}
|
objectReference: {fileID: 2070398364}
|
||||||
- target: {fileID: 1747945203000070676, guid: aef2a50dc2159e44584497dfc2fdaeb2, type: 3}
|
- target: {fileID: 1747945203000070676, guid: aef2a50dc2159e44584497dfc2fdaeb2, type: 3}
|
||||||
propertyPath: m_Materials.Array.data[0]
|
propertyPath: m_Materials.Array.data[0]
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 78807753}
|
objectReference: {fileID: 1216139865}
|
||||||
- target: {fileID: 2181858718594471380, guid: aef2a50dc2159e44584497dfc2fdaeb2, type: 3}
|
- target: {fileID: 2181858718594471380, guid: aef2a50dc2159e44584497dfc2fdaeb2, type: 3}
|
||||||
propertyPath: m_Materials.Array.data[0]
|
propertyPath: m_Materials.Array.data[0]
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 1055930635}
|
objectReference: {fileID: 454131974}
|
||||||
- target: {fileID: 3316593979028313850, guid: aef2a50dc2159e44584497dfc2fdaeb2, type: 3}
|
- target: {fileID: 3316593979028313850, guid: aef2a50dc2159e44584497dfc2fdaeb2, type: 3}
|
||||||
propertyPath: m_Materials.Array.data[0]
|
propertyPath: m_Materials.Array.data[0]
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 1111367101}
|
objectReference: {fileID: 1827233974}
|
||||||
- target: {fileID: 4441166244158635861, guid: aef2a50dc2159e44584497dfc2fdaeb2, type: 3}
|
- target: {fileID: 4441166244158635861, guid: aef2a50dc2159e44584497dfc2fdaeb2, type: 3}
|
||||||
propertyPath: m_Materials.Array.data[0]
|
propertyPath: m_Materials.Array.data[0]
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 1384802799}
|
objectReference: {fileID: 1110023344}
|
||||||
- target: {fileID: 6503432965990616960, guid: aef2a50dc2159e44584497dfc2fdaeb2, type: 3}
|
- target: {fileID: 6503432965990616960, guid: aef2a50dc2159e44584497dfc2fdaeb2, type: 3}
|
||||||
propertyPath: m_Materials.Array.data[0]
|
propertyPath: m_Materials.Array.data[0]
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 964966095}
|
objectReference: {fileID: 1425564048}
|
||||||
- target: {fileID: 6913307430280152876, guid: aef2a50dc2159e44584497dfc2fdaeb2, type: 3}
|
- target: {fileID: 6913307430280152876, guid: aef2a50dc2159e44584497dfc2fdaeb2, type: 3}
|
||||||
propertyPath: m_LocalPosition.x
|
propertyPath: m_LocalPosition.x
|
||||||
value: 0
|
value: 0
|
||||||
@ -2090,7 +2091,7 @@ PrefabInstance:
|
|||||||
- target: {fileID: 7724895669153883453, guid: aef2a50dc2159e44584497dfc2fdaeb2, type: 3}
|
- target: {fileID: 7724895669153883453, guid: aef2a50dc2159e44584497dfc2fdaeb2, type: 3}
|
||||||
propertyPath: m_Materials.Array.data[0]
|
propertyPath: m_Materials.Array.data[0]
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 1252002874}
|
objectReference: {fileID: 1439335288}
|
||||||
- target: {fileID: 8539668206094884703, guid: aef2a50dc2159e44584497dfc2fdaeb2, type: 3}
|
- target: {fileID: 8539668206094884703, guid: aef2a50dc2159e44584497dfc2fdaeb2, type: 3}
|
||||||
propertyPath: m_Name
|
propertyPath: m_Name
|
||||||
value: Platform
|
value: Platform
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
|
using DG.Tweening;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class ChasePlayerController : MonoBehaviour
|
public class ChasePlayerController : MonoBehaviour
|
||||||
{
|
{
|
||||||
public float moveSpeed = 5f;
|
public float moveSpeed = 5f;
|
||||||
public float laneDistance = 2.5f; // Distance between lanes
|
public float laneDistance = 2.5f; // Distance between lanes
|
||||||
public float jumpForce = 7f;
|
public float jumpPower = 0.6f; // Jump height
|
||||||
|
public float jumpDuration = 1.2f; // Total jump time
|
||||||
public float laneSwitchSpeed = 10f;
|
public float laneSwitchSpeed = 10f;
|
||||||
|
|
||||||
private int currentLane = 1; // 0 = Left, 1 = Middle, 2 = Right
|
private int currentLane = 1; // 0 = Left, 1 = Middle, 2 = Right
|
||||||
@ -12,7 +14,7 @@ public class ChasePlayerController : MonoBehaviour
|
|||||||
private Animator animator;
|
private Animator animator;
|
||||||
private bool isGrounded = true;
|
private bool isGrounded = true;
|
||||||
|
|
||||||
private Vector3 targetPosition;
|
private Vector3 targetLanePosition;
|
||||||
|
|
||||||
private Vector2 startTouchPosition;
|
private Vector2 startTouchPosition;
|
||||||
private Vector2 endTouchPosition;
|
private Vector2 endTouchPosition;
|
||||||
@ -23,36 +25,32 @@ public class ChasePlayerController : MonoBehaviour
|
|||||||
{
|
{
|
||||||
rb = GetComponent<Rigidbody>();
|
rb = GetComponent<Rigidbody>();
|
||||||
animator = GetComponent<Animator>();
|
animator = GetComponent<Animator>();
|
||||||
targetPosition = transform.position;
|
targetLanePosition = transform.position;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
HandleInput();
|
HandleInput();
|
||||||
HandleSwipe(); // Add this
|
HandleSwipe();
|
||||||
HandleLaneSwitch();
|
UpdateLaneTarget();
|
||||||
|
}
|
||||||
|
|
||||||
|
void FixedUpdate()
|
||||||
|
{
|
||||||
MoveForward();
|
MoveForward();
|
||||||
|
SmoothLaneSwitch();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HandleInput()
|
void HandleInput()
|
||||||
{
|
{
|
||||||
// Keyboard controls (for testing in editor)
|
if (Input.GetKeyDown(KeyCode.LeftArrow) && currentLane > 0)
|
||||||
if (Input.GetKeyDown(KeyCode.LeftArrow))
|
currentLane--;
|
||||||
{
|
|
||||||
if (currentLane > 0)
|
|
||||||
currentLane--;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Input.GetKeyDown(KeyCode.RightArrow))
|
if (Input.GetKeyDown(KeyCode.RightArrow) && currentLane < 2)
|
||||||
{
|
currentLane--;
|
||||||
if (currentLane < 2)
|
|
||||||
currentLane++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Input.GetKeyDown(KeyCode.Space) && isGrounded)
|
if (Input.GetKeyDown(KeyCode.Space) && isGrounded)
|
||||||
{
|
|
||||||
Jump();
|
Jump();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void HandleSwipe()
|
void HandleSwipe()
|
||||||
@ -69,67 +67,79 @@ public class ChasePlayerController : MonoBehaviour
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case TouchPhase.Ended:
|
case TouchPhase.Ended:
|
||||||
if (swipeDetected)
|
if (!swipeDetected) return;
|
||||||
|
|
||||||
|
endTouchPosition = touch.position;
|
||||||
|
Vector2 swipe = endTouchPosition - startTouchPosition;
|
||||||
|
|
||||||
|
if (swipe.magnitude >= minSwipeDistance)
|
||||||
{
|
{
|
||||||
endTouchPosition = touch.position;
|
float x = swipe.x;
|
||||||
Vector2 swipe = endTouchPosition - startTouchPosition;
|
float y = swipe.y;
|
||||||
|
|
||||||
if (swipe.magnitude >= minSwipeDistance)
|
if (Mathf.Abs(x) > Mathf.Abs(y))
|
||||||
{
|
{
|
||||||
float x = swipe.x;
|
// Horizontal swipe
|
||||||
float y = swipe.y;
|
if (x > 0 && currentLane < 2)
|
||||||
|
currentLane++;
|
||||||
if (Mathf.Abs(x) > Mathf.Abs(y))
|
else if (x < 0 && currentLane > 0)
|
||||||
{
|
currentLane--;
|
||||||
// Horizontal swipe
|
}
|
||||||
if (x > 0)
|
else
|
||||||
{
|
{
|
||||||
// Swipe Right
|
// Vertical swipe
|
||||||
if (currentLane < 2)
|
if (y > 0 && isGrounded)
|
||||||
currentLane++;
|
Jump();
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Swipe Left
|
|
||||||
if (currentLane > 0)
|
|
||||||
currentLane--;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Vertical swipe
|
|
||||||
if (y > 0 && isGrounded)
|
|
||||||
{
|
|
||||||
// Swipe Up = Jump
|
|
||||||
Jump();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
swipeDetected = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
swipeDetected = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Jump()
|
void UpdateLaneTarget()
|
||||||
{
|
|
||||||
rb.AddForce(Vector3.up * jumpForce, ForceMode.Impulse);
|
|
||||||
isGrounded = false;
|
|
||||||
if (animator != null) animator.SetTrigger("Jump");
|
|
||||||
}
|
|
||||||
|
|
||||||
void HandleLaneSwitch()
|
|
||||||
{
|
{
|
||||||
float targetX = (currentLane - 1) * laneDistance;
|
float targetX = (currentLane - 1) * laneDistance;
|
||||||
targetPosition = new Vector3(targetX, transform.position.y, transform.position.z);
|
targetLanePosition = new Vector3(targetX, rb.position.y, rb.position.z);
|
||||||
transform.position = Vector3.Lerp(transform.position, targetPosition, laneSwitchSpeed * Time.deltaTime);
|
}
|
||||||
|
|
||||||
|
void SmoothLaneSwitch()
|
||||||
|
{
|
||||||
|
Vector3 newPosition = Vector3.Lerp(rb.position, targetLanePosition, laneSwitchSpeed * Time.fixedDeltaTime);
|
||||||
|
rb.MovePosition(newPosition);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MoveForward()
|
void MoveForward()
|
||||||
{
|
{
|
||||||
transform.Translate(Vector3.back * moveSpeed * Time.deltaTime);
|
rb.MovePosition(rb.position + Vector3.back * moveSpeed * Time.fixedDeltaTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Jump()
|
||||||
|
{
|
||||||
|
if (!isGrounded) return;
|
||||||
|
|
||||||
|
isGrounded = false;
|
||||||
|
rb.velocity = Vector3.zero;
|
||||||
|
rb.useGravity = false;
|
||||||
|
|
||||||
|
// Predict forward displacement
|
||||||
|
float forwardDisplacement = moveSpeed * jumpDuration;
|
||||||
|
Vector3 jumpTarget = rb.position + Vector3.back * forwardDisplacement;
|
||||||
|
|
||||||
|
rb.DOJump(jumpTarget, jumpPower, 1, jumpDuration)
|
||||||
|
.SetEase(Ease.Linear)
|
||||||
|
.OnStart(() =>
|
||||||
|
{
|
||||||
|
if (animator != null) animator.SetTrigger("Jump");
|
||||||
|
})
|
||||||
|
.OnComplete(() =>
|
||||||
|
{
|
||||||
|
rb.useGravity = true;
|
||||||
|
isGrounded = true;
|
||||||
|
if (animator != null) animator.SetTrigger("Run");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnCollisionEnter(Collision collision)
|
void OnCollisionEnter(Collision collision)
|
||||||
@ -141,3 +151,187 @@ public class ChasePlayerController : MonoBehaviour
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//using DG.Tweening;
|
||||||
|
//using DG.Tweening.Plugins.Core;
|
||||||
|
//using DG.Tweening.Core;
|
||||||
|
//using DG.Tweening.Plugins.Options;
|
||||||
|
|
||||||
|
//using UnityEngine;
|
||||||
|
|
||||||
|
//public class ChasePlayerController : MonoBehaviour
|
||||||
|
//{
|
||||||
|
// public float moveSpeed = 5f;
|
||||||
|
// public float laneDistance = 2.5f; // Distance between lanes
|
||||||
|
// public float jumpForce = 7f;
|
||||||
|
// public float laneSwitchSpeed = 10f;
|
||||||
|
|
||||||
|
// private int currentLane = 1; // 0 = Left, 1 = Middle, 2 = Right
|
||||||
|
// private Rigidbody rb;
|
||||||
|
// private Animator animator;
|
||||||
|
// private bool isGrounded = true;
|
||||||
|
|
||||||
|
// private Vector3 targetPosition;
|
||||||
|
|
||||||
|
// private Vector2 startTouchPosition;
|
||||||
|
// private Vector2 endTouchPosition;
|
||||||
|
// private bool swipeDetected = false;
|
||||||
|
// private float minSwipeDistance = 50f; // Pixels
|
||||||
|
|
||||||
|
// void Start()
|
||||||
|
// {
|
||||||
|
// rb = GetComponent<Rigidbody>();
|
||||||
|
// animator = GetComponent<Animator>();
|
||||||
|
// targetPosition = transform.position;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// void Update()
|
||||||
|
// {
|
||||||
|
// HandleInput();
|
||||||
|
// HandleSwipe(); // Add this
|
||||||
|
// HandleLaneSwitch();
|
||||||
|
// MoveForward();
|
||||||
|
// }
|
||||||
|
|
||||||
|
// void HandleInput()
|
||||||
|
// {
|
||||||
|
// // Keyboard controls (for testing in editor)
|
||||||
|
// if (Input.GetKeyDown(KeyCode.LeftArrow))
|
||||||
|
// {
|
||||||
|
// if (currentLane > 0)
|
||||||
|
// currentLane--;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if (Input.GetKeyDown(KeyCode.RightArrow))
|
||||||
|
// {
|
||||||
|
// if (currentLane < 2)
|
||||||
|
// currentLane++;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if (Input.GetKeyDown(KeyCode.Space) && isGrounded)
|
||||||
|
// {
|
||||||
|
// Jump();
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// void HandleSwipe()
|
||||||
|
// {
|
||||||
|
// if (Input.touchCount == 1)
|
||||||
|
// {
|
||||||
|
// Touch touch = Input.GetTouch(0);
|
||||||
|
|
||||||
|
// switch (touch.phase)
|
||||||
|
// {
|
||||||
|
// case TouchPhase.Began:
|
||||||
|
// startTouchPosition = touch.position;
|
||||||
|
// swipeDetected = true;
|
||||||
|
// break;
|
||||||
|
|
||||||
|
// case TouchPhase.Ended:
|
||||||
|
// if (swipeDetected)
|
||||||
|
// {
|
||||||
|
// endTouchPosition = touch.position;
|
||||||
|
// Vector2 swipe = endTouchPosition - startTouchPosition;
|
||||||
|
|
||||||
|
// if (swipe.magnitude >= minSwipeDistance)
|
||||||
|
// {
|
||||||
|
// float x = swipe.x;
|
||||||
|
// float y = swipe.y;
|
||||||
|
|
||||||
|
// if (Mathf.Abs(x) > Mathf.Abs(y))
|
||||||
|
// {
|
||||||
|
// // Horizontal swipe
|
||||||
|
// if (x > 0)
|
||||||
|
// {
|
||||||
|
// // Swipe Right
|
||||||
|
// if (currentLane < 2)
|
||||||
|
// currentLane++;
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// // Swipe Left
|
||||||
|
// if (currentLane > 0)
|
||||||
|
// currentLane--;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// // Vertical swipe
|
||||||
|
// if (y > 0 && isGrounded)
|
||||||
|
// {
|
||||||
|
// // Swipe Up = Jump
|
||||||
|
// Jump();
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// swipeDetected = false;
|
||||||
|
// }
|
||||||
|
// break;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// void Jump()
|
||||||
|
// {
|
||||||
|
// if (!isGrounded) return;
|
||||||
|
|
||||||
|
// isGrounded = false;
|
||||||
|
// rb.velocity = Vector3.zero;
|
||||||
|
// rb.useGravity = false;
|
||||||
|
// float jumpPower = 0.6f; // how high the jump goes
|
||||||
|
// float jumpDuration = 1.6f; // total jump time
|
||||||
|
// int numJumps = 1;
|
||||||
|
|
||||||
|
// // Predict how far the character will move forward during the jump
|
||||||
|
// float forwardDisplacement = moveSpeed * jumpDuration;
|
||||||
|
|
||||||
|
// Vector3 jumpTarget = rb.position + Vector3.back * forwardDisplacement;
|
||||||
|
|
||||||
|
// rb.DOJump(
|
||||||
|
// jumpTarget,
|
||||||
|
// jumpPower,
|
||||||
|
// numJumps,
|
||||||
|
// jumpDuration
|
||||||
|
// )
|
||||||
|
// .SetEase(Ease.Linear)
|
||||||
|
// .OnStart(() =>
|
||||||
|
// {
|
||||||
|
// if (animator != null) animator.SetTrigger("Jump");
|
||||||
|
// })
|
||||||
|
// .OnComplete(() =>
|
||||||
|
// {
|
||||||
|
// isGrounded = true;
|
||||||
|
// if (animator != null) animator.SetTrigger("Run");
|
||||||
|
// rb.useGravity = true;
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
|
||||||
|
// //void Jump()
|
||||||
|
// //{
|
||||||
|
// // rb.AddForce(Vector3.up * jumpForce, ForceMode.Impulse);
|
||||||
|
// // isGrounded = false;
|
||||||
|
// // if (animator != null) animator.SetTrigger("Jump");
|
||||||
|
// //}
|
||||||
|
|
||||||
|
// void HandleLaneSwitch()
|
||||||
|
// {
|
||||||
|
// float targetX = (currentLane - 1) * laneDistance;
|
||||||
|
// targetPosition = new Vector3(targetX, transform.position.y, transform.position.z);
|
||||||
|
// transform.position = Vector3.Lerp(transform.position, targetPosition, laneSwitchSpeed * Time.deltaTime);
|
||||||
|
// }
|
||||||
|
|
||||||
|
// void MoveForward()
|
||||||
|
// {
|
||||||
|
// transform.Translate(Vector3.back * moveSpeed * Time.deltaTime);
|
||||||
|
// }
|
||||||
|
|
||||||
|
// void OnCollisionEnter(Collision collision)
|
||||||
|
// {
|
||||||
|
// if (collision.gameObject.CompareTag("Ground"))
|
||||||
|
// {
|
||||||
|
// isGrounded = true;
|
||||||
|
// if (animator != null) animator.SetTrigger("Run");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
BIN
Assets/UnrealengineRIG.FBX
Normal file
BIN
Assets/UnrealengineRIG.FBX
Normal file
Binary file not shown.
109
Assets/UnrealengineRIG.FBX.meta
Normal file
109
Assets/UnrealengineRIG.FBX.meta
Normal file
@ -0,0 +1,109 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 75b5d4a5f2dfd484c80d73d2f8228cc8
|
||||||
|
ModelImporter:
|
||||||
|
serializedVersion: 22200
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
materials:
|
||||||
|
materialImportMode: 2
|
||||||
|
materialName: 0
|
||||||
|
materialSearch: 1
|
||||||
|
materialLocation: 1
|
||||||
|
animations:
|
||||||
|
legacyGenerateAnimations: 4
|
||||||
|
bakeSimulation: 0
|
||||||
|
resampleCurves: 1
|
||||||
|
optimizeGameObjects: 0
|
||||||
|
removeConstantScaleCurves: 0
|
||||||
|
motionNodeName:
|
||||||
|
rigImportErrors:
|
||||||
|
rigImportWarnings:
|
||||||
|
animationImportErrors:
|
||||||
|
animationImportWarnings:
|
||||||
|
animationRetargetingWarnings:
|
||||||
|
animationDoRetargetingWarnings: 0
|
||||||
|
importAnimatedCustomProperties: 0
|
||||||
|
importConstraints: 0
|
||||||
|
animationCompression: 1
|
||||||
|
animationRotationError: 0.5
|
||||||
|
animationPositionError: 0.5
|
||||||
|
animationScaleError: 0.5
|
||||||
|
animationWrapMode: 0
|
||||||
|
extraExposedTransformPaths: []
|
||||||
|
extraUserProperties: []
|
||||||
|
clipAnimations: []
|
||||||
|
isReadable: 0
|
||||||
|
meshes:
|
||||||
|
lODScreenPercentages: []
|
||||||
|
globalScale: 0.25
|
||||||
|
meshCompression: 0
|
||||||
|
addColliders: 0
|
||||||
|
useSRGBMaterialColor: 1
|
||||||
|
sortHierarchyByName: 1
|
||||||
|
importPhysicalCameras: 1
|
||||||
|
importVisibility: 1
|
||||||
|
importBlendShapes: 1
|
||||||
|
importCameras: 1
|
||||||
|
importLights: 1
|
||||||
|
nodeNameCollisionStrategy: 1
|
||||||
|
fileIdsGeneration: 2
|
||||||
|
swapUVChannels: 0
|
||||||
|
generateSecondaryUV: 0
|
||||||
|
useFileUnits: 1
|
||||||
|
keepQuads: 0
|
||||||
|
weldVertices: 1
|
||||||
|
bakeAxisConversion: 0
|
||||||
|
preserveHierarchy: 0
|
||||||
|
skinWeightsMode: 0
|
||||||
|
maxBonesPerVertex: 4
|
||||||
|
minBoneWeight: 0.001
|
||||||
|
optimizeBones: 1
|
||||||
|
meshOptimizationFlags: -1
|
||||||
|
indexFormat: 0
|
||||||
|
secondaryUVAngleDistortion: 8
|
||||||
|
secondaryUVAreaDistortion: 15.000001
|
||||||
|
secondaryUVHardAngle: 88
|
||||||
|
secondaryUVMarginMethod: 1
|
||||||
|
secondaryUVMinLightmapResolution: 40
|
||||||
|
secondaryUVMinObjectScale: 1
|
||||||
|
secondaryUVPackMargin: 4
|
||||||
|
useFileScale: 1
|
||||||
|
strictVertexDataChecks: 0
|
||||||
|
tangentSpace:
|
||||||
|
normalSmoothAngle: 60
|
||||||
|
normalImportMode: 0
|
||||||
|
tangentImportMode: 3
|
||||||
|
normalCalculationMode: 4
|
||||||
|
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
|
||||||
|
blendShapeNormalImportMode: 1
|
||||||
|
normalSmoothingSource: 0
|
||||||
|
referencedClips: []
|
||||||
|
importAnimation: 1
|
||||||
|
humanDescription:
|
||||||
|
serializedVersion: 3
|
||||||
|
human: []
|
||||||
|
skeleton: []
|
||||||
|
armTwist: 0.5
|
||||||
|
foreArmTwist: 0.5
|
||||||
|
upperLegTwist: 0.5
|
||||||
|
legTwist: 0.5
|
||||||
|
armStretch: 0.05
|
||||||
|
legStretch: 0.05
|
||||||
|
feetSpacing: 0
|
||||||
|
globalScale: 0.0025
|
||||||
|
rootMotionBoneName:
|
||||||
|
hasTranslationDoF: 0
|
||||||
|
hasExtraRoot: 0
|
||||||
|
skeletonHasParents: 1
|
||||||
|
lastHumanDescriptionAvatarSource: {instanceID: 0}
|
||||||
|
autoGenerateAvatarMappingIfUnspecified: 1
|
||||||
|
animationType: 2
|
||||||
|
humanoidOversampling: 1
|
||||||
|
avatarSetup: 0
|
||||||
|
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
|
||||||
|
importBlendShapeDeformPercent: 1
|
||||||
|
remapMaterialsIfMaterialImportModeIsNone: 0
|
||||||
|
additionalBone: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Loading…
x
Reference in New Issue
Block a user