Update FootStepSounder.cs
This commit is contained in:
parent
32459bec81
commit
6e3aee1811
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue