mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2025-12-17 01:20:04 +00:00
Pauser, game modal launcher
This commit is contained in:
15
assets/Scripts/Game/Pauser.ts
Normal file
15
assets/Scripts/Game/Pauser.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
export class Pauser {
|
||||
private isPaused = false;
|
||||
|
||||
public get IsPaused(): boolean {
|
||||
return this.isPaused;
|
||||
}
|
||||
|
||||
public pause(): void {
|
||||
this.isPaused = true;
|
||||
}
|
||||
|
||||
public resume(): void {
|
||||
this.isPaused = false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user