mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 08:32: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);
|
base.OnSuspending(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Dispose(bool isDisposing)
|
|
||||||
{
|
|
||||||
resetAudio();
|
|
||||||
base.Dispose(isDisposing);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void updateAnimationState()
|
private void updateAnimationState()
|
||||||
{
|
{
|
||||||
if (!beatmapBackgroundLoaded || !this.IsCurrentScreen())
|
if (!beatmapBackgroundLoaded || !this.IsCurrentScreen())
|
||||||
@ -500,6 +494,12 @@ namespace osu.Game.Screens.OnlinePlay.DailyChallenge
|
|||||||
beatmapImpactChannel?.Play();
|
beatmapImpactChannel?.Play();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void Dispose(bool isDisposing)
|
||||||
|
{
|
||||||
|
resetAudio();
|
||||||
|
base.Dispose(isDisposing);
|
||||||
|
}
|
||||||
|
|
||||||
private void resetAudio()
|
private void resetAudio()
|
||||||
{
|
{
|
||||||
dateWindupChannel?.Stop();
|
dateWindupChannel?.Stop();
|
||||||
|
Loading…
Reference in New Issue
Block a user