(function() {"use strict";var __module = CC_EDITOR ? module : {exports:{}};var __filename = 'preview-scripts/assets/Script/HelloWorld.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', 'HelloWorld', __filename);
// Script/HelloWorld.js

"use strict";

cc.Class({
    extends: cc.Component,

    properties: {

        // defaults, set visually when attaching this script to the Canvas
    },

    // use this for initialization
    onLoad: function onLoad() {},

    // called every frame
    update: function update(dt) {},
    click: function click(event, customData) {
        cc.log("click", customData);
        var self = this;
        if (customData == "load") {
            cc.loader.loadRes("cocos", function (err, prefab) {
                cc.log("err:", err);
                var newNode = cc.instantiate(prefab);
                self.node.addChild(newNode);
            });
        } else if (customData == "release") {
            var deps = cc.loader.getDependsRecursively("cocos");
            cc.log("deps", JSON.stringify(deps));
            cc.loader.release(deps);
        }
    }
});

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