add proper way of getting clip length (#385)

add code doc to Jukebox
This commit is contained in:
minenice55
2023-04-03 12:40:41 -04:00
committed by GitHub
parent 3984c8353f
commit 507a64f623
2 changed files with 84 additions and 8 deletions

View File

@ -1401,7 +1401,8 @@ namespace HeavenStudio.Games
void SuccessHoldSpin()
{
player.StartSpinBook();
SpinningLoop = Jukebox.PlayOneShotScheduledGame("cheerReaders/bookSpinLoop", Jukebox.PlayOneShotGame("cheerReaders/bookSpin").clip.length, 1, 1, true);
Jukebox.PlayOneShotGame("cheerReaders/bookSpin");
SpinningLoop = Jukebox.PlayOneShotScheduledGame("cheerReaders/bookSpinLoop", Jukebox.GetClipLengthGame("cheerReaders/bookSpin"), 1, 1, true);
}
void JustReleaseSpin(PlayerActionEvent caller, float state)