Commit a04d4a41 authored by 杨一航's avatar 杨一航

fix bug

parent 64c5d49f
......@@ -496,6 +496,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.playLocalAudio("piece");
await this.pieceMove(node, nowIdx, nextIdx);
//todo
this.playLocalAudio("wrong");
await this.pieceGoBack(node, node["nowIndex"], nowIdx);
}
......@@ -1003,6 +1004,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.log("rollTheDice done");
if (this._status.back) {
await this.peaceJumpAndBack();
this.roundEndCheck();
} else {
......
......@@ -162,7 +162,7 @@ export class GameServer {
// } else {
// step = 1;
// }
// step = 15
// step = 3
step = Math.min(step, this._totalStep - 1 - nowStep);
console.log("random step ===" + step);
......
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