mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 10:13:00 +08:00
Fix delayed logo animations playing even if screen has already been exited
This commit is contained in:
parent
e8cc3294d7
commit
6d6b186fb2
@ -231,7 +231,10 @@ namespace osu.Game.Screens
|
|||||||
|
|
||||||
private void applyArrivingDefaults(bool isResuming)
|
private void applyArrivingDefaults(bool isResuming)
|
||||||
{
|
{
|
||||||
logo.AppendAnimatingAction(() => LogoArriving(logo, isResuming), true);
|
logo.AppendAnimatingAction(() =>
|
||||||
|
{
|
||||||
|
if (IsCurrentScreen) LogoArriving(logo, isResuming);
|
||||||
|
}, true);
|
||||||
|
|
||||||
if (backgroundParallaxContainer != null)
|
if (backgroundParallaxContainer != null)
|
||||||
backgroundParallaxContainer.ParallaxAmount = ParallaxContainer.DEFAULT_PARALLAX_AMOUNT * BackgroundParallaxAmount;
|
backgroundParallaxContainer.ParallaxAmount = ParallaxContainer.DEFAULT_PARALLAX_AMOUNT * BackgroundParallaxAmount;
|
||||||
|
Loading…
Reference in New Issue
Block a user