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