Commit dec51142 authored by Tt's avatar Tt

重点数值错误问题处理

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