12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- "use strict";
- cc._RF.push(module, '1e8718tEPVDtY9AR8nLj+wG', 'SingleClass');
- // Script/Manager/SingleClass.ts
- "use strict";
- var __extends = (this && this.__extends) || (function () {
- var extendStatics = function (d, b) {
- extendStatics = Object.setPrototypeOf ||
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
- return extendStatics(d, b);
- };
- return function (d, b) {
- extendStatics(d, b);
- function __() { this.constructor = d; }
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
- };
- })();
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.SingleClass = void 0;
- var BaseView_1 = require("../../lightMVC/core/base/BaseView");
- /**
- * 单例基类
- * @author xiongjian
- * @date 2016/10/11
- */
- var SingleClass = /** @class */ (function (_super) {
- __extends(SingleClass, _super);
- function SingleClass() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- /**
- * 获取一个单例
- */
- SingleClass.getInstance = function () {
- var Class = this;
- if (Class.instance == null) {
- Class.instance = new Class();
- }
- return Class.instance;
- };
- return SingleClass;
- }(BaseView_1.BaseView));
- exports.SingleClass = SingleClass;
- cc._RF.pop();
|