"use strict";

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

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

  _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;
      ButtonComponent = _cc.ButtonComponent;
    }],
    execute: function () {
      cc._RF.push(window.module || {}, "1f5dcEm86xBeawb6H7HFV16", "PlayPage"); // begin PlayPage


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

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

        function PlayPage() {
          var _babelHelpers$getProt;

          var _this;

          babelHelpers.classCallCheck(this, PlayPage);

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

        babelHelpers.createClass(PlayPage, [{
          key: "onLoad",
          value: function onLoad() {
            this.backButton = this.node.getChildByName("backBtn").getComponent(ButtonComponent);
            this.backButton.node.on("click", this.backBtnfun, this);
          }
        }, {
          key: "backBtnfun",
          value: function backBtnfun() {
            this.node.active = false;
            this.homepage.active = true;
          }
        }]);
        return PlayPage;
      }(Component), _temp), (_descriptor = babelHelpers.applyDecoratedDescriptor(_class2.prototype, "homepage", [_dec2], {
        configurable: true,
        enumerable: true,
        writable: true,
        initializer: function initializer() {
          return null;
        }
      })), _class2)) || _class));

      cc._RF.pop(); // end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