(function() {"use strict";var __module = CC_EDITOR ? module : {exports:{}};var __filename = 'preview-scripts/assets/demo/PingMuYiDong/NewScript.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, '78d32KcjuxHcoPzvV/QD+Mh', 'NewScript', __filename);
// NewScript.js

'use strict';

cc.Class({
    extends: cc.Component,

    properties: {
        // foo: {
        //    default: null,      // The default value will be used only when the component attaching
        //                           to a node for the first time
        //    url: cc.Texture2D,  // optional, default is typeof default
        //    serializable: true, // optional, default is true
        //    visible: true,      // optional, default is true
        //    displayName: 'Foo', // optional
        //    readonly: false,    // optional, default is false
        // },
        // ...
        main: cc.Node
    },

    // use this for initialization
    onLoad: function onLoad() {
        var self = this;
        self.node.on('touchmove', function (touch) {
            var x = touch.getPreviousLocation().x - touch.getLocationX();
            var y = touch.getPreviousLocation().y - touch.getLocationY();
            this.parent.x += -x;
        });
    },

    update: function update(dt) {}
});

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