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:
parent
298c40250c
commit
306e84c7ac
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user