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:
parent
5bec2d7c52
commit
42a5a06b9d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user