From b12ddfc64753e6e4924b8f56589b887802d010ff Mon Sep 17 00:00:00 2001 From: max89max Date: Sun, 8 Nov 2015 17:12:24 +0100 Subject: [PATCH] FirstPerson controller --- Assets/Prefabs/FirstPerson.prefab | 40 +++++++++++++++++++++++++++---- Assets/Scenes/maxScene.unity | 16 +++++++++---- 2 files changed, 47 insertions(+), 9 deletions(-) diff --git a/Assets/Prefabs/FirstPerson.prefab b/Assets/Prefabs/FirstPerson.prefab index 9affe9c..a075779 100644 --- a/Assets/Prefabs/FirstPerson.prefab +++ b/Assets/Prefabs/FirstPerson.prefab @@ -243,8 +243,8 @@ MonoBehaviour: m_PostInfinity: 2 m_UseHeadBob: 1 m_HeadBob: - HorizontalBobRange: .330000013 - VerticalBobRange: .330000013 + HorizontalBobRange: .100000001 + VerticalBobRange: .100000001 Bobcurve: serializedVersion: 2 m_Curve: @@ -277,10 +277,12 @@ MonoBehaviour: m_PostInfinity: 2 VerticaltoHorizontalRatio: 1 m_JumpBob: - BobDuration: 0 - BobAmount: 0 + BobDuration: .200000003 + BobAmount: .100000001 m_StepInterval: 5 - m_FootstepSounds: [] + m_FootstepSounds: + - {fileID: 8300000, guid: 42e65e088b3f4374e851b8dbd38f3df9, type: 3} + - {fileID: 8300000, guid: 8bc94ec6ed537e743b481638bdcd503d, type: 3} m_JumpSound: {fileID: 8300000, guid: 5897aeed9b676024fbb8c694b421a861, type: 3} m_LandSound: {fileID: 8300000, guid: 3b09d59f4499d45428baa7a21e954296, type: 3} --- !u!124 &12420880 @@ -314,6 +316,10 @@ Prefab: m_Modification: m_TransformParent: {fileID: 0} m_Modifications: + - target: {fileID: 0} + propertyPath: m_FootstepSounds.Array.size + value: 2 + objectReference: {fileID: 0} - target: {fileID: 0} propertyPath: m_JumpSpeed value: 10 @@ -350,6 +356,30 @@ Prefab: propertyPath: m_LandSound value: objectReference: {fileID: 8300000, guid: 3b09d59f4499d45428baa7a21e954296, type: 3} + - target: {fileID: 0} + propertyPath: m_FootstepSounds.Array.data[0] + value: + objectReference: {fileID: 8300000, guid: 42e65e088b3f4374e851b8dbd38f3df9, type: 3} + - target: {fileID: 0} + propertyPath: m_FootstepSounds.Array.data[1] + value: + objectReference: {fileID: 8300000, guid: 8bc94ec6ed537e743b481638bdcd503d, type: 3} + - target: {fileID: 0} + propertyPath: m_JumpBob.BobDuration + value: .200000003 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_JumpBob.BobAmount + value: .100000001 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_HeadBob.HorizontalBobRange + value: .100000001 + objectReference: {fileID: 0} + - target: {fileID: 0} + propertyPath: m_HeadBob.VerticalBobRange + value: .100000001 + objectReference: {fileID: 0} m_RemovedComponents: [] m_ParentPrefab: {fileID: 0} m_RootGameObject: {fileID: 186122} diff --git a/Assets/Scenes/maxScene.unity b/Assets/Scenes/maxScene.unity index b44ca19..59830f1 100644 --- a/Assets/Scenes/maxScene.unity +++ b/Assets/Scenes/maxScene.unity @@ -127,7 +127,7 @@ Prefab: m_RemovedComponents: [] m_ParentPrefab: {fileID: 100100000, guid: 3135019c33394eb4f917b222e3ecbddb, type: 2} m_IsPrefabParent: 0 ---- !u!1001 &1427647978 +--- !u!1001 &2023543146 Prefab: m_ObjectHideFlags: 0 serializedVersion: 2 @@ -136,15 +136,15 @@ Prefab: m_Modifications: - target: {fileID: 476210, guid: e180da7fedba0004086c3f44426d29c5, type: 2} propertyPath: m_LocalPosition.x - value: 0 + value: -.469999999 objectReference: {fileID: 0} - target: {fileID: 476210, guid: e180da7fedba0004086c3f44426d29c5, type: 2} propertyPath: m_LocalPosition.y - value: .545000017 + value: 2.1099999 objectReference: {fileID: 0} - target: {fileID: 476210, guid: e180da7fedba0004086c3f44426d29c5, type: 2} propertyPath: m_LocalPosition.z - value: -.409999996 + value: 2.48688507 objectReference: {fileID: 0} - target: {fileID: 476210, guid: e180da7fedba0004086c3f44426d29c5, type: 2} propertyPath: m_LocalRotation.x @@ -166,6 +166,14 @@ Prefab: propertyPath: m_RootOrder value: 1 objectReference: {fileID: 0} + - target: {fileID: 11486352, guid: e180da7fedba0004086c3f44426d29c5, type: 2} + propertyPath: m_JumpBob.BobDuration + value: .200000003 + objectReference: {fileID: 0} + - target: {fileID: 11486352, guid: e180da7fedba0004086c3f44426d29c5, type: 2} + propertyPath: m_JumpBob.BobAmount + value: .100000001 + objectReference: {fileID: 0} m_RemovedComponents: [] m_ParentPrefab: {fileID: 100100000, guid: e180da7fedba0004086c3f44426d29c5, type: 2} m_IsPrefabParent: 0