removed unneeded null checks

This commit is contained in:
BananeVolante
2020-07-01 13:30:23 +02:00
parent ab134c0ed7
commit ab1eb469af

View File

@ -44,17 +44,17 @@ namespace osu.Game.Screens.Play
base.PopIn(); base.PopIn();
//SkinnableSound only plays a sound if its aggregate volume is > 0, so the volume must be turned up before playing it //SkinnableSound only plays a sound if its aggregate volume is > 0, so the volume must be turned up before playing it
pauseLoop?.TransformBindableTo(pauseLoop.Volume, 0.00001); pauseLoop.TransformBindableTo(pauseLoop.Volume, 0.00001);
pauseLoop?.TransformBindableTo(pauseLoop.Volume, 1.0f, 400, Easing.InQuint); pauseLoop.TransformBindableTo(pauseLoop.Volume, 1.0f, 400, Easing.InQuint);
pauseLoop?.Play(); pauseLoop.Play();
} }
protected override void PopOut() protected override void PopOut()
{ {
base.PopOut(); base.PopOut();
pauseLoop?.Stop(); pauseLoop.Stop();
pauseLoop?.TransformBindableTo(pauseLoop.Volume, 0.0f); pauseLoop.TransformBindableTo(pauseLoop.Volume, 0.0f);
} }
} }
} }