Slash-The-Hordes/assets/Scripts/Game/Pauser.ts

16 lines
258 B
TypeScript
Raw Permalink Normal View History

2022-11-25 11:00:09 +00:00
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;
}
}