mirror of
https://github.com/osukey/osukey.git
synced 2025-05-03 20:57:28 +09:00
Remove unnecessary bool
This commit is contained in:
parent
1fc16693d6
commit
e76961a932
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user