From 05a8e5fd3cd6fa23a5aed8fc2040584615c94793 Mon Sep 17 00:00:00 2001 From: BOT Alex <44818698+MagicBOTAlex@users.noreply.github.com> Date: Sun, 4 Feb 2024 08:36:45 +0100 Subject: [PATCH] idk tweaks --- Assets/Scenes/GameScene.unity | 16 ++++++++++++++++ Assets/Scripts/Player/FootStepSounder.cs | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Assets/Scenes/GameScene.unity b/Assets/Scenes/GameScene.unity index c5fa899..cb56f83 100644 --- a/Assets/Scenes/GameScene.unity +++ b/Assets/Scenes/GameScene.unity @@ -589,6 +589,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: @@ -691,6 +699,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;