Commit 1f7adbfb authored by yu's avatar yu

1

parent 558892ae
...@@ -174,7 +174,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -174,7 +174,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
list = JSON.parse(JSON.stringify(list)); list = JSON.parse(JSON.stringify(list));
list.sort((A, B) => { return Math.random() < 0.5 }); list.sort((A, B) => { return Math.random() < 0.5 });
this.list = list; this.list = list;
Game.getIns().player.addScore(this.list.length); // Game.getIns().player.addScore(this.list.length);
this.count = 0; this.count = 0;
this.lastCount = null; this.lastCount = null;
this.fishs = []; this.fishs = [];
...@@ -766,6 +766,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -766,6 +766,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
for (const key in words) { for (const key in words) {
if (Object.prototype.hasOwnProperty.call(words, key)) { if (Object.prototype.hasOwnProperty.call(words, key)) {
const element = words[key]; const element = words[key];
this.log("score: " + element.scores.overall);
if (element.scores.overall <= 40) return isSuccess = false; if (element.scores.overall <= 40) return isSuccess = false;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment