mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
removed unneeded null checks
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user