mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2024-12-25 11:18:54 +00:00
16 lines
258 B
TypeScript
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;
|
|
}
|
|
}
|