Skip to content

Commit

Permalink
fix: the game will not halt after player reaches final objective
Browse files Browse the repository at this point in the history
  • Loading branch information
hehao98 committed Dec 26, 2019
1 parent 0f23794 commit a7d4046
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/Scripts/UI/ResourcePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ cc.Class({
let total = this.game.worldRankManager.getUniversityCount();
this.worldRankLabel.string = rank + "/" + total;

this.statusLabel.string = "目标:" + this.game.gameObjectives[this.game.currentObjective].nameShort;
if (this.game.currentObjective < this.game.gameObjectives.length)
this.statusLabel.string = "目标:" + this.game.gameObjectives[this.game.currentObjective].nameShort;
},
});

0 comments on commit a7d4046

Please sign in to comment.