Fan Club: landing sound

This commit is contained in:
minenice55 2022-03-17 17:01:26 -04:00
parent 65918bd950
commit dc46781d40

View file

@ -191,10 +191,14 @@ namespace HeavenStudio.Games.Scripts_FanClub
{
motionRoot.transform.localPosition = new Vector3(0, 0);
shadow.transform.localScale = new Vector3(1.4f, 1.4f, 1f);
if (hasJumped && player)
if (hasJumped)
{
animator.Play("FanPrepare", 0, 0);
stopBeat = false;
Jukebox.PlayOneShotGame("fanClub/landing_impact", pitch: UnityEngine.Random.Range(0.95f, 1f), volume: 1f/4);
if (player)
{
animator.Play("FanPrepare", 0, 0);
stopBeat = false;
}
}
hasJumped = false;
}