

cc.Class({
    extends: cc.Component,

    properties: {
        lineSkeleton: sp.Skeleton,
    },

    onLoad() {
        this.node.opacity = 0;
        this.lineSkeleton.setAnimation(0, 'lx1_stand', true);
        this.node.runAction(cc.fadeIn(0.4));
    },

    showAnimation(cb) {
        this.lineSkeleton.setAnimation(0, 'lx1_run', false);
        this.lineSkeleton.setCompleteListener(() => {
            this.lineSkeleton.setAnimation(0, 'lx1_stand', true);
            cb();
        });
    }

});
