1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- 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({}, "35443DU2a9HQo4/Jh2U4R1R", "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=108a97f57e778627c9cd55ffd5cec9d0ad06b127.js.map
|