Split out into own method

This commit is contained in:
Dean Herbert
2019-12-27 11:37:05 +09:00
parent 380c3161f1
commit cfa1dfa1a4

View File

@ -25,6 +25,14 @@ namespace osu.Game.Rulesets.Mania.Skinning
switch (component) switch (component)
{ {
case GameplaySkinComponent<HitResult> resultComponent: case GameplaySkinComponent<HitResult> resultComponent:
return getResult(resultComponent);
}
return null;
}
private Drawable getResult(GameplaySkinComponent<HitResult> resultComponent)
{
switch (resultComponent.Component) switch (resultComponent.Component)
{ {
case HitResult.Miss: case HitResult.Miss:
@ -46,9 +54,6 @@ namespace osu.Game.Rulesets.Mania.Skinning
return this.GetAnimation("mania-hit300g", true, true); return this.GetAnimation("mania-hit300g", true, true);
} }
break;
}
return null; return null;
} }