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) {}, });