1234567891011121314151617181920212223242526272829303132 |
- cc.Class({
- extends: cc.Component,
- properties: {
- },
- // LIFE-CYCLE CALLBACKS:
- // onLoad () {},
- show() {
- this.scheduleOnce(() => {
- this.timeAction();
- }, 2);
- },
- timeAction() {
- this.node.destroy();
- },
- onDestroy() {
- this.unschedule(this.timeAction, this);
- },
- start () {
- },
- // update (dt) {},
- });
|