Commit cc0ef51b authored by 李帅's avatar 李帅

增加回调

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