| 1234567891011121314151617181920212223242526272829303132 |
- // 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 GameM, { AUDIO_TYPE } from "../manager/GameM";
- import UiM from "../manager/UiM";
- import Main from "../Main";
- import AdM from "../manager/AdM";
- const { ccclass, property } = cc._decorator;
- @ccclass
- export default class Remind extends cc.Component {
- // onLoad () {}
- start() {
- cc.tween()
- }
- clickClose() {
- GameM.audioM.playEffect(AUDIO_TYPE.button)
- this.node.active = false
- GameM.commonData.updateRoleNewUser()
- UiM.Instance.hallNode.getComponent(Main).checkNewUser()
- }
- // update (dt) {}
- }
|