mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 04:02:59 +08:00
Remove unnecessary null checks and debug code
This commit is contained in:
parent
c4d08463ad
commit
098005393e
@ -133,15 +133,13 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
|
||||
if (tracking.NewValue)
|
||||
{
|
||||
if (!spinningSample.IsPlaying)
|
||||
spinningSample?.Play();
|
||||
spinningSample?.VolumeTo(1, 300);
|
||||
spinningSample.Play();
|
||||
|
||||
spinningSample.VolumeTo(1, 300);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (spinningSample != null)
|
||||
spinningSample.Volume.Value = 0;
|
||||
|
||||
spinningSample?.VolumeTo(0, fade_out_duration);
|
||||
spinningSample.VolumeTo(0, fade_out_duration);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user