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