Commit 65cc1480 authored by liujiangnan's avatar liujiangnan

feat: 添加成绩上报

parent fc7f4769
......@@ -888,7 +888,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
// 初始化转盘
turntable: null;
turntable = null;
initTurntable() {
this.turntable = cc.find("Canvas/Turntable").getComponent("Turntable");
this.turntable.initTurntable(DEBUG);
......@@ -1106,9 +1106,21 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.redPlayerHomeNode.active = false;
this.bluePlayerHomeNode.active = false;
cc.find("Canvas/finishLayer").active = true;
// 上报游戏结束标识
this.finish();
})
}
isFinished = false;
finish() {
if (this.isFinished) {
return;
}
this.isFinished = true;
onHomeworkFinish();
}
async onAiEvents(event) {
// 当有AI玩家的时候 需要处理这部分逻辑
switch(event.type) {
......
......@@ -15,6 +15,8 @@
"local",
"temp",
"build",
"settings"
"settings",
"form",
"form_angular"
]
}
\ No newline at end of file
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