Commit dec51142 authored by Tt's avatar Tt

重点数值错误问题处理

parent 43515f55
...@@ -131,14 +131,14 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -131,14 +131,14 @@ export default class SceneComponent extends MyCocosSceneComponent {
let points = this.getMovePoints(this.robotPoint, runNum); let points = this.getMovePoints(this.robotPoint, runNum);
console.log(points); console.log(points);
this.chessRobot.getComponent("chess").run(points).then(() => { this.chessRobot.getComponent("chess").run(points).then(() => {
this.robotPoint += runNum; this.robotPoint += (points.length - 1);
resolve(''); resolve('');
}) })
} else { } else {
let points = this.getMovePoints(this.playerPoint, runNum); let points = this.getMovePoints(this.playerPoint, runNum);
console.log(points); console.log(points);
this.chessPlayer.getComponent("chess").run(points).then(() => { this.chessPlayer.getComponent("chess").run(points).then(() => {
this.playerPoint += runNum; this.playerPoint += (points.length - 1);
resolve(''); resolve('');
}) })
} }
......
This diff is collapsed.
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