mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Use switch—case instead
This commit is contained in:
@ -24,10 +24,13 @@ namespace osu.Game.Rulesets.Catch.Skinning.Legacy
|
||||
|
||||
public override Drawable GetDrawableComponent(ISkinComponent component)
|
||||
{
|
||||
if (component is SkinnableTargetComponent targetComponent && targetComponent.Target == SkinnableTarget.MainHUDComponents)
|
||||
if (component is SkinnableTargetComponent targetComponent)
|
||||
{
|
||||
switch (targetComponent.Target)
|
||||
{
|
||||
case SkinnableTarget.MainHUDComponents:
|
||||
if (!providesComboCounter)
|
||||
return null;
|
||||
break;
|
||||
|
||||
if (Source.GetDrawableComponent(component) is SkinnableTargetComponentsContainer components)
|
||||
{
|
||||
@ -39,6 +42,9 @@ namespace osu.Game.Rulesets.Catch.Skinning.Legacy
|
||||
return components;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user