From dc46781d4088ac20a59be682c344d9780c6ee867 Mon Sep 17 00:00:00 2001 From: minenice55 Date: Thu, 17 Mar 2022 17:01:26 -0400 Subject: [PATCH] Fan Club: landing sound --- Assets/Scripts/Games/FanClub/NtrIdolFan.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/Games/FanClub/NtrIdolFan.cs b/Assets/Scripts/Games/FanClub/NtrIdolFan.cs index a06e526b..d3b24145 100644 --- a/Assets/Scripts/Games/FanClub/NtrIdolFan.cs +++ b/Assets/Scripts/Games/FanClub/NtrIdolFan.cs @@ -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; }