diff --git a/Assets/Scenes/GameScene.unity b/Assets/Scenes/GameScene.unity index 45f9ad0..badfa50 100644 --- a/Assets/Scenes/GameScene.unity +++ b/Assets/Scenes/GameScene.unity @@ -593,6 +593,14 @@ PrefabInstance: propertyPath: MaxVibration value: 0.5 objectReference: {fileID: 0} + - target: {fileID: 5150961666696654592, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} + propertyPath: Volume + value: 0.25 + objectReference: {fileID: 0} + - target: {fileID: 5150961666696654592, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} + propertyPath: StepInterval + value: 1 + objectReference: {fileID: 0} - target: {fileID: 7071433868121438663, guid: 30e0cc55a67f02d4f92b2677ec4b1511, type: 3} propertyPath: otherPlayerAttack value: @@ -695,6 +703,14 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} + - target: {fileID: 1691493459240420355, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} + propertyPath: Volume + value: 0.25 + objectReference: {fileID: 0} + - target: {fileID: 1691493459240420355, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} + propertyPath: StepInterval + value: 1 + objectReference: {fileID: 0} - target: {fileID: 1749848915408613053, guid: 99a6ff8b9591949439b620b13bd249a4, type: 3} propertyPath: otherPlayerAttack value: diff --git a/Assets/Scripts/Player/FootStepSounder.cs b/Assets/Scripts/Player/FootStepSounder.cs index 186d410..72e0c62 100644 --- a/Assets/Scripts/Player/FootStepSounder.cs +++ b/Assets/Scripts/Player/FootStepSounder.cs @@ -14,9 +14,9 @@ public class FootStepSounder : MonoBehaviour void Update() { movedDist += Vector3.Distance(transform.position, prevPos); - if (movedDist % StepInterval < 0.1f) + if (movedDist % StepInterval < 0.2f) { - AudioManager.PlaySound("Footstep_" + UnityEngine.Random.Range(1, 6), transform.position, true).volume = Volume; + AudioManager.PlaySound("Footstep_" + UnityEngine.Random.Range(1, 6), transform.position).volume = Volume; } prevPos = transform.position;