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

  var _cclegacy, Singleton, _crd;

  _export("Singleton", void 0);

  return {
    setters: [function (_cc) {
      _cclegacy = _cc.cclegacy;
    }],
    execute: function () {
      _crd = true;

      _cclegacy._RF.push({}, "1aee69SZgpGDplJ+iJl5Iuy", "Singleton", undefined);

      /**
       * 单例基类
       */
      _export("Singleton", Singleton = class Singleton {
        constructor() {}
        /**获取单例实例 
         * @returns 单例实例
         */


        static ins() {
          if (!this._ins) {
            this._ins = new this();
          }

          return this._ins;
        }
        /**
         * 销毁单例实例
         */


        static destroy() {
          this._ins = null;
        }

      });

      _cclegacy._RF.pop();

      _crd = false;
    }
  };
});
//# sourceMappingURL=9220eb56269368ca4b980387f427a9fd85adf647.js.map