1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-19 04:22:55 +08:00

Move disposal method to more expected location

This commit is contained in:
Bartłomiej Dach 2024-08-12 10:46:58 +02:00
parent 298c40250c
commit 306e84c7ac
No known key found for this signature in database

View File

@ -367,12 +367,6 @@ namespace osu.Game.Screens.OnlinePlay.DailyChallenge
base.OnSuspending(e);
}
protected override void Dispose(bool isDisposing)
{
resetAudio();
base.Dispose(isDisposing);
}
private void updateAnimationState()
{
if (!beatmapBackgroundLoaded || !this.IsCurrentScreen())
@ -500,6 +494,12 @@ namespace osu.Game.Screens.OnlinePlay.DailyChallenge
beatmapImpactChannel?.Play();
}
protected override void Dispose(bool isDisposing)
{
resetAudio();
base.Dispose(isDisposing);
}
private void resetAudio()
{
dateWindupChannel?.Stop();