From fd8c4fd0475ecbbe27cb25ce53527aa488eae065 Mon Sep 17 00:00:00 2001 From: Stef Jenkins <89670341+freeformfunposting@users.noreply.github.com> Date: Fri, 6 May 2022 15:14:01 -0700 Subject: [PATCH] Fixed a sound error with Autoplay --- Assets/Scripts/Games/Spaceball/SpaceballBall.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Games/Spaceball/SpaceballBall.cs b/Assets/Scripts/Games/Spaceball/SpaceballBall.cs index 066ad3e2..e2719864 100644 --- a/Assets/Scripts/Games/Spaceball/SpaceballBall.cs +++ b/Assets/Scripts/Games/Spaceball/SpaceballBall.cs @@ -54,6 +54,12 @@ namespace HeavenStudio.Games.Scripts_Spaceball hitRot = Holder.transform.eulerAngles.z; Jukebox.PlayOneShotGame("spaceball/hit"); + + // jank fix for a bug with autoplay - freeform + if (GameManager.instance.autoplay && Conductor.instance.isPlaying && GameManager.instance.canInput) + { + Jukebox.PlayOneShotGame("spaceball/swing"); + } randomEndPosX = Random.Range(40f, 55f); @@ -134,4 +140,4 @@ namespace HeavenStudio.Games.Scripts_Spaceball } } -} \ No newline at end of file +}