mirror of
https://github.com/ppy/osu
synced 2025-01-20 04:50:50 +00:00
Only track logo if we're still the current screen
This commit is contained in:
parent
65f5318298
commit
8222923ab8
@ -163,7 +163,11 @@ namespace osu.Game.Screens.Play
|
||||
logo.ScaleTo(new Vector2(0.15f), duration, Easing.In);
|
||||
logo.FadeIn(350);
|
||||
|
||||
Scheduler.AddDelayed(() => { content.StartTracking(logo, resuming ? 0 : 500, Easing.InOutExpo); }, resuming ? 0 : 500);
|
||||
Scheduler.AddDelayed(() =>
|
||||
{
|
||||
if (this.IsCurrentScreen())
|
||||
content.StartTracking(logo, resuming ? 0 : 500, Easing.InOutExpo);
|
||||
}, resuming ? 0 : 500);
|
||||
}
|
||||
|
||||
protected override void LogoExiting(OsuLogo logo)
|
||||
|
Loading…
Reference in New Issue
Block a user