Fix: apply random word level

This commit is contained in:
2019-01-06 21:41:46 +09:00
parent 113fb37f04
commit 6806410780
3 changed files with 43 additions and 14 deletions
+5
View File
@@ -9,6 +9,11 @@ function ScoreText(x, y, score) {
else if(scoreValue < 0)
Phaser.Text.call(this, game, x, y, NumberUtil.numberWithCommas(score), ScoreText.DEFAULT_TEXT_FONT);
if(this == undefined) {
this.destroy();
return;
}
this.anchor.set(0.5);
this.inputEnabled = false;