"use strict";

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

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

  _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;
      Node = _cc.Node;
    }],
    execute: function () {
      cc._RF.push(window.module || {}, "22431Ikm75KYIZbtqFj41Lp", "start"); // begin start


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

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

        function start() {
          var _babelHelpers$getProt;

          var _this;

          babelHelpers.classCallCheck(this, start);

          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(start)).call.apply(_babelHelpers$getProt, [this].concat(args)));
          babelHelpers.initializerDefineProperty(_this, "resumeButton", _descriptor, babelHelpers.assertThisInitialized(_this));
          return _this;
        }

        babelHelpers.createClass(start, [{
          key: "start",
          value: function start() {} // Your initialization goes here.
          //开始游戏

        }, {
          key: "startGame",
          value: function startGame() {
            cc.director.loadScene('game');
          } //退出游戏

        }, {
          key: "exitGame",
          value: function exitGame() {
            cc.game.end();
          } //游戏暂停

        }, {
          key: "pauseGame",
          value: function pauseGame() {
            cc.director.pause();
            this.resumeButton.active = true;
          } //继续游戏

        }, {
          key: "resumeGame",
          value: function resumeGame() {
            cc.director.resume();
            this.resumeButton.active = false;
          } //主菜单

        }, {
          key: "menu",
          value: function menu() {
            cc.director.loadScene('start');
          } // update (deltaTime: number) {
          //     // Your update function goes here.
          // }

        }]);
        return start;
      }(Component), _temp), (_descriptor = babelHelpers.applyDecoratedDescriptor(_class2.prototype, "resumeButton", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class));

      cc._RF.pop(); // end start

    }
  };
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInByb2plY3Q6Ly8vYXNzZXRzL3NjcmlwdC9zdGFydC50cyJdLCJuYW1lcyI6WyJfZGVjb3JhdG9yIiwiQ29tcG9uZW50IiwiTm9kZSIsImNjY2xhc3MiLCJwcm9wZXJ0eSIsInN0YXJ0IiwiY2MiLCJkaXJlY3RvciIsImxvYWRTY2VuZSIsImdhbWUiLCJlbmQiLCJwYXVzZSIsInJlc3VtZUJ1dHRvbiIsImFjdGl2ZSIsInJlc3VtZSJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQVNBLE1BQUFBLFUsT0FBQUEsVTtBQUFZQyxNQUFBQSxTLE9BQUFBLFM7QUFBV0MsTUFBQUEsSSxPQUFBQSxJOzs7NEVBRXlDOzs7QUFEakVDLE1BQUFBLE8sR0FBc0JILFUsQ0FBdEJHLE87QUFBU0MsTUFBQUEsUSxHQUFhSixVLENBQWJJLFE7O3VCQUdKQyxLLFdBRFpGLE9BQU8sQ0FBQyxPQUFELEMsVUFVSEMsUUFBUSxDQUFDRixJQUFELEM7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O2tDQUdBLENBRVIsQyxDQURHO0FBR0o7Ozs7c0NBRUE7QUFDSUksWUFBQUEsRUFBRSxDQUFDQyxRQUFILENBQVlDLFNBQVosQ0FBc0IsTUFBdEI7QUFDSCxXLENBRUQ7Ozs7cUNBRUE7QUFDSUYsWUFBQUEsRUFBRSxDQUFDRyxJQUFILENBQVFDLEdBQVI7QUFDSCxXLENBRUQ7Ozs7c0NBRUE7QUFDSUosWUFBQUEsRUFBRSxDQUFDQyxRQUFILENBQVlJLEtBQVo7QUFDQSxpQkFBS0MsWUFBTC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