1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 15:22:55 +08:00

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