Commit e8f289d4 authored by yu's avatar yu

1

parent 1f7adbfb
......@@ -174,7 +174,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
list = JSON.parse(JSON.stringify(list));
list.sort((A, B) => { return Math.random() < 0.5 });
this.list = list;
// Game.getIns().player.addScore(this.list.length);
Game.getIns().player.addScore(this.list.length);
this.count = 0;
this.lastCount = null;
this.fishs = [];
......
......@@ -206,7 +206,7 @@ export default class NewClass extends cc.Component {
if (data.fish.isOut != FISH_OUT.RUNNING) return;
data.fish.isOut = FISH_OUT.TOUCH;
let isRight = await this.fishing(item, this.layout_player);
isRight && Game.getIns().player.addScore();
// isRight && Game.getIns().player.addScore();
!isRight && Game.getIns().player.addError();
}
//机器人随机钓鱼
......@@ -227,7 +227,7 @@ export default class NewClass extends cc.Component {
if (!data.right) return;
data.fish.isOut = FISH_OUT.TOUCH;
let isRight = await this.fishing(data.fish.node, this.layout_robot);
isRight && Game.getIns().robot.addScore();
// isRight && Game.getIns().robot.addScore();
!isRight && Game.getIns().player.addError();
}
}
......
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