Remove unnecessary casts

This commit is contained in:
n4b3l 2016-12-17 15:06:56 +01:00
parent ba81222af6
commit c73fbe6e42
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}