mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Split out into own method
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user