Commit cc0ef51b authored by 李帅's avatar 李帅

增加回调

parent ba47e9f3
......@@ -2,7 +2,7 @@
* @Author: ls
* @Date: 2022-04-14 19:58:47
* @LastEditors: ls
* @LastEditTime: 2022-04-16 16:59:43
* @LastEditTime: 2022-04-18 20:38:19
* @Description: file content
* @FilePath: \ls_activity_after\assets\ls_activity_after\scene\ls_activity_after.ts
*/
......@@ -25,7 +25,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this._audioResList.push({ url: this.data.audio });
}
addPreloadAnima() {}
addPreloadAnima() { }
onLoadEnd() {
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
......@@ -34,7 +34,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this.initListener();
}
initData() {}
initData() { }
initView() {
this.initBg();
......@@ -91,7 +91,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
bgNode.scale = this._mapScaleMax;
}
initListener() {}
initListener() { }
playLocalAudio(audioName) {
const audio = cc.find(`Canvas/res/audio/${audioName}`).getComponent(cc.AudioSource);
......@@ -108,18 +108,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
// TODO
let info = this.data.gameInfo[Number(str)];
if (str === '0') {
//
} else if (str === '1') {
//
} else if (str === '2') {
//
} else if (str === '3') {
//
} else if (str === '4') {
//
} else if (str === '5') {
//
}
// callFunc('NS_select_game', { gameId: info.id });
}
}
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