mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 11:07:39 +02:00
BTSDS: Piano!!!
This commit is contained in:
@ -224,7 +224,7 @@ namespace RhythmHeavenMania
|
||||
SetCurrentEventToClosest(beat);
|
||||
}
|
||||
|
||||
for (int i = 0; i < SoundObjects.Count; i++) Destroy(SoundObjects[i].gameObject);
|
||||
KillAllSounds();
|
||||
}
|
||||
|
||||
public void Pause()
|
||||
@ -237,6 +237,13 @@ namespace RhythmHeavenMania
|
||||
Conductor.instance.Stop(beat);
|
||||
SetCurrentEventToClosest(beat);
|
||||
onBeatChanged?.Invoke(beat);
|
||||
KillAllSounds();
|
||||
}
|
||||
|
||||
public void KillAllSounds()
|
||||
{
|
||||
for (int i = 0; i < SoundObjects.Count; i++)
|
||||
Destroy(SoundObjects[i].gameObject);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
Reference in New Issue
Block a user