mirror of
https://github.com/MartinKral/Slash-The-Hordes
synced 2024-12-25 19:28:53 +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;
|
||
|
}
|
||
|
}
|