mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 22:13:20 +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 pauseCooldown = 1000;
|
||||||
private double lastPauseActionTime = 0;
|
private double lastPauseActionTime = 0;
|
||||||
|
|
||||||
private bool canPause
|
private bool canPause => Time.Current >= (lastPauseActionTime + pauseCooldown);
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return Time.Current >= (lastPauseActionTime + pauseCooldown);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private IAdjustableClock sourceClock;
|
private IAdjustableClock sourceClock;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user