Jukebox/Sound code cleanup

This commit is contained in:
Jenny Crowe
2022-03-09 20:59:48 -07:00
parent 84c4e8fc9f
commit 1a90ba28d9
4 changed files with 21 additions and 21 deletions

View File

@ -99,6 +99,17 @@ namespace RhythmHeavenMania.Util
}
}
public void SetLoopParams(float endBeat, float fadeTime)
{
loopEndBeat = endBeat;
this.fadeTime = fadeTime;
}
public void Stop()
{
audioSource.Stop();
}
public void Delete()
{
GameManager.instance.SoundObjects.Remove(gameObject);