mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 20:32:55 +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 (tracking.NewValue)
|
||||||
{
|
{
|
||||||
if (!spinningSample.IsPlaying)
|
if (!spinningSample.IsPlaying)
|
||||||
spinningSample?.Play();
|
spinningSample.Play();
|
||||||
spinningSample?.VolumeTo(1, 300);
|
|
||||||
|
spinningSample.VolumeTo(1, 300);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (spinningSample != null)
|
spinningSample.VolumeTo(0, fade_out_duration);
|
||||||
spinningSample.Volume.Value = 0;
|
|
||||||
|
|
||||||
spinningSample?.VolumeTo(0, fade_out_duration);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user