Commit adb02552 authored by liujiangnan's avatar liujiangnan

feat: 跳跃

parent b923ca74
......@@ -190,5 +190,14 @@ export default class SceneComponent extends MyCocosSceneComponent {
middleLayerComponent.loadOnlineBundle('NJ_MoreGames');
}
}, 0.6);
const btnLxc = cc.find('Canvas/lxc');
buttonOnClick(btnLxc, () => {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent('middleLayer');
middleLayerComponent.loadOnlineBundle('workbook_l2');
}
}, 0.6);
}
}
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