mirror of
https://github.com/ppy/osu.git
synced 2025-02-20 06:12:55 +08:00
Remove unnecessary casts
This commit is contained in:
parent
ba81222af6
commit
c73fbe6e42
@ -149,14 +149,14 @@ namespace osu.Game.Screens.Play
|
||||
base.OnEntering(last);
|
||||
|
||||
(Background as BackgroundModeBeatmap)?.BlurTo(Vector2.Zero, 1000);
|
||||
(Background as BackgroundModeBeatmap)?.FadeTo((100f- dimLevel)/100,1000);
|
||||
Background?.FadeTo((100f- dimLevel)/100,1000);
|
||||
|
||||
Content.Alpha = 0;
|
||||
}
|
||||
|
||||
protected override bool OnExiting(GameMode next)
|
||||
{
|
||||
(Background as BackgroundModeBeatmap)?.FadeTo(1f, 0);
|
||||
Background?.FadeTo(1f, 0);
|
||||
return base.OnExiting(next);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user