Merge pull request #77 from freeformfunposting/master

(minor) Fix for a sound error with Autoplay in Spaceball
This commit is contained in:
Jenny Crowe 2022-05-07 14:18:04 -07:00 committed by GitHub
commit e164c66439

View file

@ -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
}
}
}
}