mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 16:02:56 +08:00
Use switch instead of or
This commit is contained in:
parent
23fd514ca3
commit
726042d9ec
@ -25,15 +25,28 @@ namespace osu.Game.Rulesets.Osu.Skinning
|
|||||||
switch (state)
|
switch (state)
|
||||||
{
|
{
|
||||||
case ArmedState.Hit:
|
case ArmedState.Hit:
|
||||||
if (drawableObject is DrawableSliderTick or DrawableSliderRepeat)
|
switch (drawableObject)
|
||||||
|
{
|
||||||
|
case DrawableSliderTick:
|
||||||
|
case DrawableSliderRepeat:
|
||||||
OnSliderTick();
|
OnSliderTick();
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
case ArmedState.Miss:
|
case ArmedState.Miss:
|
||||||
if (drawableObject is DrawableSliderTail or DrawableSliderTick or DrawableSliderRepeat)
|
switch (drawableObject)
|
||||||
|
{
|
||||||
|
case DrawableSliderTail:
|
||||||
|
case DrawableSliderTick:
|
||||||
|
case DrawableSliderRepeat:
|
||||||
OnSliderBreak();
|
OnSliderBreak();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user