mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2024-12-26 03:38:58 +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;
|
||
|
}
|
||
|
}
|