1
0

shareFailAlert.js 401 B

1234567891011121314151617181920212223242526272829303132
  1. cc.Class({
  2. extends: cc.Component,
  3. properties: {
  4. },
  5. // LIFE-CYCLE CALLBACKS:
  6. // onLoad () {},
  7. show() {
  8. this.scheduleOnce(() => {
  9. this.timeAction();
  10. }, 2);
  11. },
  12. timeAction() {
  13. this.node.destroy();
  14. },
  15. onDestroy() {
  16. this.unschedule(this.timeAction, this);
  17. },
  18. start () {
  19. },
  20. // update (dt) {},
  21. });