mirror of https://github.com/ppy/osu
Remove unnecessary casts
This commit is contained in:
parent
ba81222af6
commit
c73fbe6e42
|
@ -149,14 +149,14 @@ protected override void OnEntering(GameMode last)
|
|||
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