This commit is contained in:
OliverS 2024-02-04 02:23:10 +01:00
commit 4566ef6684
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ public class FootStepSounder : MonoBehaviour
movedDist += Vector3.Distance(transform.position, prevPos); movedDist += Vector3.Distance(transform.position, prevPos);
if (movedDist % StepInterval < 0.1f) 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; prevPos = transform.position;