mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 00:42:55 +08:00
removed unneeded null checks
This commit is contained in:
parent
ab134c0ed7
commit
ab1eb469af
@ -44,17 +44,17 @@ namespace osu.Game.Screens.Play
|
||||
base.PopIn();
|
||||
|
||||
//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, 1.0f, 400, Easing.InQuint);
|
||||
pauseLoop?.Play();
|
||||
pauseLoop.TransformBindableTo(pauseLoop.Volume, 0.00001);
|
||||
pauseLoop.TransformBindableTo(pauseLoop.Volume, 1.0f, 400, Easing.InQuint);
|
||||
pauseLoop.Play();
|
||||
}
|
||||
|
||||
protected override void PopOut()
|
||||
{
|
||||
base.PopOut();
|
||||
|
||||
pauseLoop?.Stop();
|
||||
pauseLoop?.TransformBindableTo(pauseLoop.Volume, 0.0f);
|
||||
pauseLoop.Stop();
|
||||
pauseLoop.TransformBindableTo(pauseLoop.Volume, 0.0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user