Commit 1108a048 authored by 李帅's avatar 李帅

增加回调

parent 72886828
......@@ -2,7 +2,7 @@
* @Author: ls
* @Date: 2022-04-14 19:58:47
* @LastEditors: ls
* @LastEditTime: 2022-04-16 17:02:58
* @LastEditTime: 2022-04-18 20:36:31
* @Description: file content
* @FilePath: \ls_activity_before\assets\ls_activity_before\scene\ls_activity_before.ts
*/
......@@ -25,7 +25,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
this._audioResList.push({ url: this.data.audio });
}
addPreloadAnima() {}
addPreloadAnima() { }
onLoadEnd() {
// TODO 加载完成后的逻辑写在这里, 下面的代码仅供参考
......@@ -74,7 +74,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);
......@@ -91,18 +91,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