const AlertManager = require('../utils/AlertManager'); cc.Class({ extends: cc.Component, properties: { caishenSkeleton: sp.Skeleton, hongyundangtouSkeleton: sp.Skeleton, content: cc.Node }, // LIFE-CYCLE CALLBACKS: onLoad () { this._isShow = false; this.content.height = cc.view.getVisibleSize().height; }, show() { this.caishenSkeleton.setCompleteListener(() => { this.caishenSkeleton.setAnimation(0, 'run', false); this.node.destroy(); }); if (!this._isShow) { this._isShow = true; cc.find('Canvas').addChild(this.node); } else { this.node.active = true; } }, start () { }, // update (dt) {}, });