mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Use switch instead of or
This commit is contained in:
@ -25,13 +25,26 @@ namespace osu.Game.Rulesets.Osu.Skinning
|
||||
switch (state)
|
||||
{
|
||||
case ArmedState.Hit:
|
||||
if (drawableObject is DrawableSliderTick or DrawableSliderRepeat)
|
||||
OnSliderTick();
|
||||
switch (drawableObject)
|
||||
{
|
||||
case DrawableSliderTick:
|
||||
case DrawableSliderRepeat:
|
||||
OnSliderTick();
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case ArmedState.Miss:
|
||||
if (drawableObject is DrawableSliderTail or DrawableSliderTick or DrawableSliderRepeat)
|
||||
OnSliderBreak();
|
||||
switch (drawableObject)
|
||||
{
|
||||
case DrawableSliderTail:
|
||||
case DrawableSliderTick:
|
||||
case DrawableSliderRepeat:
|
||||
OnSliderBreak();
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user