Remove unnecessary bool

This commit is contained in:
Dean Herbert 2017-10-11 11:23:02 +09:00
parent 1fc16693d6
commit e76961a932

View File

@ -31,8 +31,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
private readonly CirclePiece circle; private readonly CirclePiece circle;
private readonly GlowPiece glow; private readonly GlowPiece glow;
private bool spmShown;
private readonly SpriteIcon symbol; private readonly SpriteIcon symbol;
private readonly Color4 baseColour = OsuColour.FromHex(@"002c3c"); private readonly Color4 baseColour = OsuColour.FromHex(@"002c3c");
@ -167,11 +165,8 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
protected override void Update() protected override void Update()
{ {
disc.Tracking = OsuActionInputManager.PressedActions.Any(x => x == OsuAction.LeftButton || x == OsuAction.RightButton); disc.Tracking = OsuActionInputManager.PressedActions.Any(x => x == OsuAction.LeftButton || x == OsuAction.RightButton);
if (!spmShown && disc.Tracking) if (!spmCounter.IsPresent && disc.Tracking)
{
spmShown = true;
spmCounter.FadeIn(TIME_FADEIN); spmCounter.FadeIn(TIME_FADEIN);
}
base.Update(); base.Update();
} }