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

fix

parent e1309f86
......@@ -799,9 +799,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const node = cc.find(
`Canvas/road/root/piece${this._status.current}`
);
const idx = this._cardList.length;
const rightBlock = this._cardList[idx - 1];
// await this.pieceFindRightBlock(rightBlock, idx);
await this.fixStep();
if (this.isMySide) {
this.showWin();
onHomeworkFinish({ isWin: true });
......
......@@ -196,6 +196,8 @@ export class GameServer {
this.changeSide();
} else {
this.gameStatus.state = 2;
this.gameStatus.step = null;
this.gameStatus.jump = !!jump;
this.networkHelper.sendFrame({
type: "SERVER_playerWin",
status: this.gameStatus,
......
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