1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-07 20:47:26 +08:00

style(KeyCounter): fields and methods visiblity

This commit is contained in:
tsrk 2023-02-21 19:10:37 +00:00
parent 5bec2d7c52
commit 42a5a06b9d
No known key found for this signature in database
GPG Key ID: EBD46BB3049B56D6

View File

@ -42,9 +42,9 @@ namespace osu.Game.Screens.Play
Name = trigger.Name;
}
protected Bindable<bool> IsActive = new BindableBool();
protected readonly Bindable<bool> IsActive = new BindableBool();
public void Increment()
private void increment()
{
if (!IsCounting)
return;
@ -52,7 +52,7 @@ namespace osu.Game.Screens.Play
countPresses.Value++;
}
public void Decrement()
private void decrement()
{
if (!IsCounting)
return;
@ -64,14 +64,14 @@ namespace osu.Game.Screens.Play
{
IsActive.Value = true;
if (forwardPlayback)
Increment();
increment();
}
protected virtual void Deactivate(bool forwardPlayback = true)
{
IsActive.Value = false;
if (!forwardPlayback)
Decrement();
decrement();
}
protected override void Dispose(bool isDisposing)