Merge branch 'main' of https://gitea.deprived.dev/Sveskejuice/fgm24
This commit is contained in:
commit
4566ef6684
|
@ -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