
                (function() {
                    var nodeEnv = typeof require !== 'undefined' && typeof process !== 'undefined';
                    var __module = nodeEnv ? module : {exports:{}};
                    var __filename = 'preview-scripts/assets/SpineTest.js';
                    var __require = nodeEnv ? function (request) {
                        return cc.require(request);
                    } : function (request) {
                        return __quick_compile_project__.require(request, __filename);
                    };
                    function __define (exports, require, module) {
                        if (!nodeEnv) {__quick_compile_project__.registerModule(__filename, module);}"use strict";
cc._RF.push(module, '492e2IoE2FAK6Gf07x8Xque', 'SpineTest');
// SpineTest.ts

// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
Object.defineProperty(exports, "__esModule", { value: true });
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var SpineTest = /** @class */ (function (_super) {
    __extends(SpineTest, _super);
    function SpineTest() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.skeleton = null;
        _this.data = null;
        return _this;
    }
    // LIFE-CYCLE CALLBACKS:
    // onLoad () {}
    SpineTest.prototype.start = function () {
    };
    SpineTest.prototype.clickUseFunc = function () {
        this.skeleton.setSkeletonData(this.data);
    };
    SpineTest.prototype.clickUseEquation = function () {
        this.skeleton.skeletonData = this.data;
    };
    __decorate([
        property(sp.Skeleton)
    ], SpineTest.prototype, "skeleton", void 0);
    __decorate([
        property(sp.SkeletonData)
    ], SpineTest.prototype, "data", void 0);
    SpineTest = __decorate([
        ccclass
    ], SpineTest);
    return SpineTest;
}(cc.Component));
exports.default = SpineTest;

cc._RF.pop();
                    }
                    if (nodeEnv) {
                        __define(__module.exports, __require, __module);
                    }
                    else {
                        __quick_compile_project__.registerModuleFunc(__filename, function () {
                            __define(__module.exports, __require, __module);
                        });
                    }
                })();
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3Vy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