| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- // Learn TypeScript:
- // - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
- // Learn Attribute:
- // - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
- // Learn life-cycle callbacks:
- // - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
- import AdM from "../../manager/AdM";
- import GameM, { AUDIO_TYPE } from "../../manager/GameM";
- import UiM, { PANEL_NAME } from "../../manager/UiM";
- const {ccclass, property} = cc._decorator;
- @ccclass
- export default class ClubGuideNode extends cc.Component {
- // LIFE-CYCLE CALLBACKS:
- // onLoad () {}
- start () {
- }
- showClubMain(){
- GameM.audioM.playEffect(AUDIO_TYPE.button)
- if (GameM.commonData.isAuth) {
- UiM.Instance.onPanel(PANEL_NAME.clubMainNode)
- if(cc.isValid(this.node)){
- this.node.destroy()
- }
- }else{
- AdM.WxLogin();
- }
-
- }
- clickClose(){
- GameM.audioM.playEffect(AUDIO_TYPE.button)
- if(cc.isValid(this.node)){
- this.node.destroy()
- }
- }
- // update (dt) {}
- }
|