12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- "use strict";
- cc._RF.push(module, 'd5262scz7JIN5XTetZlHL9+', 'hallSceneMediator');
- // Script/hallSceneMediator.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 });
- var BaseMediator_1 = require("../lightMVC/core/base/BaseMediator");
- var ViewManager_1 = require("../lightMVC/core/manager/ViewManager");
- var hallSceneMediator = /** @class */ (function (_super) {
- __extends(hallSceneMediator, _super);
- function hallSceneMediator() {
- return _super !== null && _super.apply(this, arguments) || this;
- }
- hallSceneMediator.prototype.init = function (data) {
- var _this = this;
- //将mediator添加到了layer数组中
- ViewManager_1.ViewManager.getInstance().pushLayerList(this);
- this.registerNoti("UPDATE_TILI", function () {
- console.log('UPDATE_TILI**************');
- _this.view.ShowPhysicalValue();
- }, this);
- this.registerNoti("UPDATE_COIN", function () {
- console.log('UPDATE_TILI**************');
- _this.view.ShowUserCoinValue();
- }, this);
- this.registerNoti("UPDATE_DIAMOND", function () {
- console.log('UPDATE_DIAMOND**************');
- _this.view.ShowUserDiamondValue();
- }, this);
- this.registerNoti("UPDATE_TILI_JISHI", function (data) {
- _this.view.TiliCountShow(data);
- }, this);
- };
- hallSceneMediator.prototype.viewDidAppear = function () {
- };
- hallSceneMediator.prototype.destroy = function () {
- };
- return hallSceneMediator;
- }(BaseMediator_1.default));
- exports.default = hallSceneMediator;
- cc._RF.pop();
|