Commit 7f1f8c8e authored by Tt's avatar Tt

更换到destroy内

parent 71b28cc8
......@@ -54,10 +54,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
}
protected onDestroy(): void {
courseware && courseware.onConfigurationLandscape()
}
onClose() {
pg.event.clear();
courseware.onConfigurationLandscape()
// 下一页
const middleLayer = cc.find('middleLayer').getComponent('middleLayer');
middleLayer.saveGolds(this.score); // 保存金币数量;num 是获得金币的数量,数字类型;
......
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