Remind.ts 874 B

1234567891011121314151617181920212223242526272829303132
  1. // Learn TypeScript:
  2. // - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
  3. // Learn Attribute:
  4. // - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
  5. // Learn life-cycle callbacks:
  6. // - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
  7. import GameM, { AUDIO_TYPE } from "../manager/GameM";
  8. import UiM from "../manager/UiM";
  9. import Main from "../Main";
  10. import AdM from "../manager/AdM";
  11. const { ccclass, property } = cc._decorator;
  12. @ccclass
  13. export default class Remind extends cc.Component {
  14. // onLoad () {}
  15. start() {
  16. cc.tween()
  17. }
  18. clickClose() {
  19. GameM.audioM.playEffect(AUDIO_TYPE.button)
  20. this.node.active = false
  21. GameM.commonData.updateRoleNewUser()
  22. UiM.Instance.hallNode.getComponent(Main).checkNewUser()
  23. }
  24. // update (dt) {}
  25. }