12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- var t = require;
- var e = module;
- var i = exports;
- var s,
- e =
- (this && this.__decorate) ||
- function(t, e, i, s) {
- var o,
- a = arguments.length,
- n = a < 3 ? e : null === s ? (s = Object.getOwnPropertyDescriptor(e, i)) : s;
- if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) n = Reflect.decorate(t, e, i, s);
- else
- for (var r = t.length - 1; 0 <= r; r--)
- (o = t[r]) && (n = (a < 3 ? o(n) : 3 < a ? o(e, i, n) : o(e, i)) || n);
- return 3 < a && n && Object.defineProperty(e, i, n), n;
- };
- Object.defineProperty(i, "__esModule", { value: !0 });
- const o = t("App"),
- a = t("NodePool"),
- { ccclass: n, property: r } = cc._decorator;
- t = s = class extends cc.Component {
- constructor() {
- super(),
- (this.flyLabel = null),
- (this.itemPool = null),
- (this.baseBtnPool = null),
- (this.tipAniPool = null),
- (this.getCoinEffect = null),
- (this.moneyLabPool = null),
- (this.multiSprMaterial = null),
- (this.passSectionFoodPool = null),
- (this.cookUnlockAni = null),
- (this.catUnlockAni = null),
- (this.machineLvUpAni = null),
- (this.congratulationItem = null),
- (this.catLefttimeProgressPool = null),
- (this.roleLangPool = null),
- (this.fireAniPool = null),
- (this.poolsPromise = {}),
- (this._handGuidePoolPromise = null),
- (s.instance = this),
- (o.default.NodePoolMsr = this);
- }
- onLoad() {
- cc.game.addPersistRootNode(this.node);
- }
- getPoolByUrl(t) {
- return (
- this.poolsPromise[t] ||
- ((this.poolsPromise[t] = o.default.ResManager.getResAsync(t, cc.Prefab).then(t => {
- const e = new a.default();
- return (e.prefab = t), e;
- })),
- this.poolsPromise[t])
- );
- }
- getHandGuidePool() {
- return (
- this._handGuidePoolPromise ||
- ((this._handGuidePoolPromise = o.default.ResManager.getResAsync(
- "prefab/view/component/HandGuide",
- cc.Prefab
- ).then(t => {
- const e = new a.default();
- return (e.prefab = t), e;
- })),
- this._handGuidePoolPromise)
- );
- }
- };
- (t.instance = null),
- e([r(a.default)], t.prototype, "flyLabel", void 0),
- e([r(a.default)], t.prototype, "itemPool", void 0),
- e([r(a.default)], t.prototype, "baseBtnPool", void 0),
- e([r(a.default)], t.prototype, "tipAniPool", void 0),
- e([r(a.default)], t.prototype, "getCoinEffect", void 0),
- e([r(a.default)], t.prototype, "moneyLabPool", void 0),
- e([r(cc.Material)], t.prototype, "multiSprMaterial", void 0),
- e([r(a.default)], t.prototype, "passSectionFoodPool", void 0),
- e([r(a.default)], t.prototype, "cookUnlockAni", void 0),
- e([r(a.default)], t.prototype, "catUnlockAni", void 0),
- e([r(a.default)], t.prototype, "machineLvUpAni", void 0),
- e([r(a.default)], t.prototype, "congratulationItem", void 0),
- e([r(a.default)], t.prototype, "catLefttimeProgressPool", void 0),
- e([r(a.default)], t.prototype, "roleLangPool", void 0),
- e([r(a.default)], t.prototype, "fireAniPool", void 0),
- (t = s = e([n], t)),
- (i.default = t = s);
|