Remove no longer required field

This commit is contained in:
Bartłomiej Dach 2020-09-28 16:59:33 +02:00
parent f6f267a43a
commit 2fb9a5d734
1 changed files with 2 additions and 6 deletions

View File

@ -15,7 +15,6 @@ public class LegacyHitExplosion : CompositeDrawable
private readonly Drawable sprite;
private readonly Drawable strongSprite;
private DrawableHit hit;
private DrawableStrongNestedHit nestedStrongHit;
private bool switchedToStrongSprite;
@ -58,11 +57,8 @@ private void load(DrawableHitObject judgedObject)
}));
}
if (judgedObject is DrawableHit h)
{
hit = h;
if (judgedObject is DrawableHit hit)
nestedStrongHit = hit.NestedHitObjects.SingleOrDefault() as DrawableStrongNestedHit;
}
}
protected override void LoadComplete()
@ -95,7 +91,7 @@ protected override void Update()
private bool shouldSwitchToStrongSprite()
{
if (hit == null || nestedStrongHit == null || strongSprite == null)
if (nestedStrongHit == null || strongSprite == null)
return false;
return nestedStrongHit.IsHit;