mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-26 11:33:05 +00:00
Fan Club: landing sound
This commit is contained in:
parent
65918bd950
commit
dc46781d40
1 changed files with 7 additions and 3 deletions
|
@ -191,11 +191,15 @@ 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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue