Slash-The-Hordes/assets/Scripts/Game/Pauser.ts
2022-11-25 12:00:09 +01:00

16 lines
258 B
TypeScript

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;
}
}