mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 17:52:54 +08:00
switch -> if.
This commit is contained in:
parent
2964c04c14
commit
ec6267c5b2
@ -88,15 +88,10 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
lastSampleTime = Clock.CurrentTime;
|
lastSampleTime = Clock.CurrentTime;
|
||||||
sample.Frequency.Value = 1 + NormalizedValue * 0.2f;
|
sample.Frequency.Value = 1 + NormalizedValue * 0.2f;
|
||||||
|
|
||||||
switch (NormalizedValue)
|
if (NormalizedValue == 0)
|
||||||
{
|
|
||||||
case 0:
|
|
||||||
sample.Frequency.Value -= 0.4f;
|
sample.Frequency.Value -= 0.4f;
|
||||||
break;
|
else if (NormalizedValue == 1)
|
||||||
case 1:
|
|
||||||
sample.Frequency.Value += 0.4f;
|
sample.Frequency.Value += 0.4f;
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
sample.Play();
|
sample.Play();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user