refactor
This commit is contained in:
parent
4918923635
commit
e33c8bf43a
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ export class DropAndFusionGame extends EventEmitter<{
|
||||||
this.gameOver();
|
this.gameOver();
|
||||||
}
|
}
|
||||||
|
|
||||||
public gameOver() {
|
private gameOver() {
|
||||||
this.isGameOver = true;
|
this.isGameOver = true;
|
||||||
if (this.tickRaf) window.cancelAnimationFrame(this.tickRaf);
|
if (this.tickRaf) window.cancelAnimationFrame(this.tickRaf);
|
||||||
this.tickRaf = null;
|
this.tickRaf = null;
|
||||||
|
|
Loading…
Reference in a new issue