mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Avoid accessing container in each counter.
This commit is contained in:
@ -17,7 +17,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
private SpriteText countSpriteText;
|
||||
|
||||
public override string Name { get; }
|
||||
public KeyCounterCollection ParentCounter { get; set; }
|
||||
public bool IsCounting { get; set; }
|
||||
public int Count { get; private set; }
|
||||
|
||||
private bool isLit;
|
||||
@ -30,7 +30,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
isLit = value;
|
||||
UpdateGlowSprite();
|
||||
if (value && ParentCounter.IsCounting)
|
||||
if (value && IsCounting)
|
||||
IncreaseCount();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user