"use strict";

System.register(["cc"], function (_export, _context) {
  "use strict";

  var _decorator, Component, _dec, _dec2, _class, _class2, _descriptor, _temp, ccclass, property, groundMove;

  _export({
    _dec: void 0,
    _dec2: void 0,
    _class: void 0,
    _class2: void 0,
    _descriptor: void 0,
    _temp: void 0
  });

  return {
    setters: [function (_cc) {
      _decorator = _cc._decorator;
      Component = _cc.Component;
    }],
    execute: function () {
      cc._RF.push(window.module || {}, "5070bmbltRH/L6ap4FMr7/h", "groundMove"); // begin groundMove


      ccclass = _decorator.ccclass;
      property = _decorator.property;

      _export("groundMove", groundMove = (_dec = ccclass("groundMove"), _dec2 = property(Number), _dec(_class = (_class2 = (_temp =
      /*#__PURE__*/
      function (_Component) {
        babelHelpers.inherits(groundMove, _Component);

        function groundMove() {
          var _babelHelpers$getProt;

          var _this;

          babelHelpers.classCallCheck(this, groundMove);

          for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
            args[_key] = arguments[_key];
          }

          _this = babelHelpers.possibleConstructorReturn(this, (_babelHelpers$getProt = babelHelpers.getPrototypeOf(groundMove)).call.apply(_babelHelpers$getProt, [this].concat(args)));
          babelHelpers.initializerDefineProperty(_this, "groundSpeed", _descriptor, babelHelpers.assertThisInitialized(_this));
          return _this;
        }

        babelHelpers.createClass(groundMove, [{
          key: "start",

          /* class member could be defined like this */
          // dummy = '';

          /* use `property` decorator if your want the member to be serializable */
          // @property
          // serializableDummy = 0;
          value: function start() {} // Your initialization goes here.
          //cc.director.getCollisionManger().enabled=true;
          // update (deltaTime: number) {
          //     // Your update function goes here.
          // }

        }, {
          key: "update",
          value: function update(deltaTime) {
            var e = this.node.getPosition();
            e.z += deltaTime * this.groundSpeed;
            this.node.setPosition(e.x, e.y, e.z);
          }
        }]);
        return groundMove;
      }(Component), _temp), (_descriptor = babelHelpers.applyDecoratedDescriptor(_class2.prototype, "groundSpeed", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return 10;
        }
      })), _class2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