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

  var _cclegacy, __checkObsolete__, __checkObsoleteInNamespace__, _decorator, Component, SystemEvent, systemEvent, RigidBody2D, Vec2, _dec, _class, _crd, ccclass, property, Tank;

  return {
    setters: [function (_cc) {
      _cclegacy = _cc.cclegacy;
      __checkObsolete__ = _cc.__checkObsolete__;
      __checkObsoleteInNamespace__ = _cc.__checkObsoleteInNamespace__;
      _decorator = _cc._decorator;
      Component = _cc.Component;
      SystemEvent = _cc.SystemEvent;
      systemEvent = _cc.systemEvent;
      RigidBody2D = _cc.RigidBody2D;
      Vec2 = _cc.Vec2;
    }],
    execute: function () {
      _crd = true;

      _cclegacy._RF.push({}, "1e4e4bCdMBOtKj7jYREEb5D", "Tank", undefined);

      __checkObsolete__(['_decorator', 'Component', 'Node', 'Event', 'SystemEvent', 'game', 'systemEvent', 'EventTouch', 'RigidBody', 'RigidBody2D', 'Vec2', 'Camera']);

      ({
        ccclass,
        property
      } = _decorator);
      /**
       * Predefined variables
       * Name = Tank
       * DateTime = Wed Dec 22 2021 18:10:28 GMT+0800 (中国标准时间)
       * Author = Winterning
       * FileBasename = Tank.ts
       * FileBasenameNoExtension = Tank
       * URL = db://assets/Tank.ts
       * ManualUrl = https://docs.cocos.com/creator/3.3/manual/zh/
       *
       */

      _export("Tank", Tank = (_dec = ccclass('Tank'), _dec(_class = class Tank extends Component {
        // [1]
        // dummy = '';
        // [2]
        // @property({ type: Camera })
        // camera: Camera;
        start() {
          // [3]
          systemEvent.on(SystemEvent.EventType.TOUCH_START, this.onTouch, this); // console.log("@@start");
          // this.camera.node.position.set(this.node.position.x, this.node.position.y, 1000)
        } // update(deltaTime: number) {
        //     // [4]   
        // }


        onTouch(touch, event) {
          console.log("@@onTouch");
          var rig = this.getComponent(RigidBody2D);
          rig.applyForceToCenter(new Vec2(100, 0), true);
        }

      }) || _class));
      /**
       * [1] Class member could be defined like this.
       * [2] Use `property` decorator if your want the member to be serializable.
       * [3] Your initialization goes here.
       * [4] Your update function goes here.
       *
       * Learn more about scripting: https://docs.cocos.com/creator/3.3/manual/zh/scripting/
       * Learn more about CCClass: https://docs.cocos.com/creator/3.3/manual/zh/scripting/ccclass.html
       * Learn more about life-cycle callbacks: https://docs.cocos.com/creator/3.3/manual/zh/scripting/life-cycle-callbacks.html
       */


      _cclegacy._RF.pop();

      _crd = false;
    }
  };
});
//# sourceMappingURL=2afb85c359cfe1624cf65dedd91754bee3b7deb7.js.map