mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 18:32:55 +08:00
Made Player.canPause one line
This commit is contained in:
parent
2c12568a0d
commit
c92418e000
@ -55,13 +55,7 @@ namespace osu.Game.Screens.Play
|
||||
private double pauseCooldown = 1000;
|
||||
private double lastPauseActionTime = 0;
|
||||
|
||||
private bool canPause
|
||||
{
|
||||
get
|
||||
{
|
||||
return Time.Current >= (lastPauseActionTime + pauseCooldown);
|
||||
}
|
||||
}
|
||||
private bool canPause => Time.Current >= (lastPauseActionTime + pauseCooldown);
|
||||
|
||||
private IAdjustableClock sourceClock;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user