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

  var _reporterNs, _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Component, constant, _dec, _class, _crd, ccclass, property, OUTOFBOUNCE, enemyPlane;

  function _reportPossibleCrUseOfconstant(extras) {
    _reporterNs.report("constant", "../framework/constant", _context.meta, extras);
  }

  return {
    setters: [function (_unresolved_) {
      _reporterNs = _unresolved_;
    }, function (_cc) {
      _cclegacy = _cc.cclegacy;
      __checkObsolete__ = _cc.__checkObsolete__;
      __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
      _decorator = _cc._decorator;
      Component = _cc.Component;
    }, function (_unresolved_2) {
      constant = _unresolved_2.constant;
    }],
    execute: function () {
      _crd = true;

      _cclegacy._RF.push({}, "fd1ddS50lhH3LjBrCyqMPL7", "enemyPlane", undefined);

      __checkObsolete__(['_decorator', 'Component', 'Node', 'sp']);

      ({
        ccclass,
        property
      } = _decorator);
      OUTOFBOUNCE = 50;

      _export("enemyPlane", enemyPlane = (_dec = ccclass('enemyPlane'), _dec(_class = class enemyPlane extends Component {
        constructor() {
          super(...arguments);
          // @property
          // public enemySpeed = 0;
          this._enemySpeed = 0;
          this.enemyType = (_crd && constant === void 0 ? (_reportPossibleCrUseOfconstant({
            error: Error()
          }), constant) : constant).EnemyPlaneType.TYPE1;
        }

        start() {}

        update(deltaTime) {
          var pos = this.node.position;
          var movePos = pos.x - this._enemySpeed;
          this.node.setPosition(movePos, pos.y, pos.z);

          if (movePos > OUTOFBOUNCE) {
            this.node.destroy();
          }
        }

        show(speed) {
          this._enemySpeed = speed;
        }

      }) || _class));

      _cclegacy._RF.pop();

      _crd = false;
    }
  };
});
//# sourceMappingURL=317cdf1a2cc677419bfe696f1a4a7546f5b13f08.js.map