(function() {"use strict";var __module = CC_EDITOR ? module : {exports:{}};var __filename = 'preview-scripts/assets/Script/Test.js';var __require = CC_EDITOR ? function (request) {return cc.require(request, require);} : function (request) {return cc.require(request, __filename);};function __define (exports, require, module) {"use strict";
cc._RF.push(module, '280c3rsZJJKnZ9RqbALVwtK', 'Test', __filename);
// Script/Test.js

'use strict';

cc.Class({
    extends: cc.Component,

    properties: {},

    onLoad: function onLoad() {
        var count = 0;
        var skeleton = this.node.getChildByName('Test').getComponent(sp.Skeleton);
        skeleton.setEventListener(function (track, event) {
            count++;
            if (count < 5) {
                console.log(event);
                if (event.data.name === 'circle_g2b') {
                    skeleton.setAnimation(1, event.data.name, false);
                    // this.scheduleOnce(function () {
                    //     skeleton.setAnimation(1, event.data.name, false);
                    // });
                }
            }
        }.bind(this));
    }
});

cc._RF.pop();
        }
        if (CC_EDITOR) {
            __define(__module.exports, __require, __module);
        }
        else {
            cc.registerModuleFunc(__filename, function () {
                __define(__module.exports, __require, __module);
            });
        }
        })();
        //# sourceMappingURL=Test.js.map
        