Commit 746ec521 authored by 范雪寒's avatar 范雪寒

feat: 上报成绩

parent cee791d0
...@@ -767,8 +767,10 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -767,8 +767,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
await this.pieceFindRightBlock(rightBlock, idx); await this.pieceFindRightBlock(rightBlock, idx);
if (playerMe.color == this._status.current) { if (playerMe.color == this._status.current) {
this.showWin(); this.showWin();
onHomeworkFinish({ isWin: true });
} else { } else {
this.showLoss(); this.showLoss();
onHomeworkFinish({ isWin: false });
} }
} }
}); });
......
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