From 6e3aee181191d55acae36aad5b1637921909460a Mon Sep 17 00:00:00 2001 From: BOT Alex <44818698+MagicBOTAlex@users.noreply.github.com> Date: Sun, 4 Feb 2024 02:20:57 +0100 Subject: [PATCH] Update FootStepSounder.cs --- Assets/Scripts/Player/FootStepSounder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Scripts/Player/FootStepSounder.cs b/Assets/Scripts/Player/FootStepSounder.cs index ada9efa..186d410 100644 --- a/Assets/Scripts/Player/FootStepSounder.cs +++ b/Assets/Scripts/Player/FootStepSounder.cs @@ -16,7 +16,7 @@ public class FootStepSounder : MonoBehaviour movedDist += Vector3.Distance(transform.position, prevPos); if (movedDist % StepInterval < 0.1f) { - AudioManager.PlaySound("Footstep_" + UnityEngine.Random.Range(0, 6), transform.position, true).volume = Volume; + AudioManager.PlaySound("Footstep_" + UnityEngine.Random.Range(1, 6), transform.position, true).volume = Volume; } prevPos = transform.position;