mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-27 03:53:01 +00:00
Fixed a sound error with Autoplay
This commit is contained in:
parent
459dd813f6
commit
bdc5642710
1 changed files with 7 additions and 1 deletions
|
@ -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
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue