mirror of https://github.com/ppy/osu
Move reset logic to OsuGame
This commit is contained in:
parent
43a575484a
commit
dbdb25ccf7
|
@ -957,6 +957,9 @@ protected virtual void ScreenChanged(IScreen current, IScreen newScreen)
|
|||
break;
|
||||
}
|
||||
|
||||
// reset on screen change for sanity.
|
||||
LocalUserPlaying.Value = false;
|
||||
|
||||
if (current is IOsuScreen currentOsuScreen)
|
||||
OverlayActivationMode.UnbindFrom(currentOsuScreen.OverlayActivationMode);
|
||||
|
||||
|
|
|
@ -666,8 +666,6 @@ public override void OnSuspending(IScreen next)
|
|||
{
|
||||
screenSuspension?.Expire();
|
||||
|
||||
LocalUserPlaying.Value = false;
|
||||
|
||||
fadeOut();
|
||||
base.OnSuspending(next);
|
||||
}
|
||||
|
@ -697,8 +695,6 @@ public override bool OnExiting(IScreen next)
|
|||
|
||||
musicController.ResetTrackAdjustments();
|
||||
|
||||
LocalUserPlaying.Value = false;
|
||||
|
||||
fadeOut();
|
||||
return base.OnExiting(next);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue