mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 08:33:55 +09:00
Made Player.canPause one line
This commit is contained in:
@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user