mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 04:47:39 +09:00
Remove no longer required field
This commit is contained in:
parent
f6f267a43a
commit
2fb9a5d734
@ -15,7 +15,6 @@ namespace osu.Game.Rulesets.Taiko.Skinning
|
|||||||
private readonly Drawable sprite;
|
private readonly Drawable sprite;
|
||||||
private readonly Drawable strongSprite;
|
private readonly Drawable strongSprite;
|
||||||
|
|
||||||
private DrawableHit hit;
|
|
||||||
private DrawableStrongNestedHit nestedStrongHit;
|
private DrawableStrongNestedHit nestedStrongHit;
|
||||||
private bool switchedToStrongSprite;
|
private bool switchedToStrongSprite;
|
||||||
|
|
||||||
@ -58,11 +57,8 @@ namespace osu.Game.Rulesets.Taiko.Skinning
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (judgedObject is DrawableHit h)
|
if (judgedObject is DrawableHit hit)
|
||||||
{
|
|
||||||
hit = h;
|
|
||||||
nestedStrongHit = hit.NestedHitObjects.SingleOrDefault() as DrawableStrongNestedHit;
|
nestedStrongHit = hit.NestedHitObjects.SingleOrDefault() as DrawableStrongNestedHit;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
@ -95,7 +91,7 @@ namespace osu.Game.Rulesets.Taiko.Skinning
|
|||||||
|
|
||||||
private bool shouldSwitchToStrongSprite()
|
private bool shouldSwitchToStrongSprite()
|
||||||
{
|
{
|
||||||
if (hit == null || nestedStrongHit == null || strongSprite == null)
|
if (nestedStrongHit == null || strongSprite == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return nestedStrongHit.IsHit;
|
return nestedStrongHit.IsHit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user