Fixed a sound error with Autoplay

This commit is contained in:
Stef Jenkins 2022-05-06 15:14:01 -07:00 committed by GitHub
parent 459dd813f6
commit bdc5642710
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,6 +55,12 @@ namespace HeavenStudio.Games.Scripts_Spaceball
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);
anim.enabled = false;