"use strict"; cc._RF.push(module, '03fd8Qa4UVHro7yeV3SkyyJ', 'ChooseLevelPanelMediator'); // Script/view/chooseLevel/ChooseLevelPanelMediator.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 ChooseLevelPanelMediator = /** @class */ (function (_super) { __extends(ChooseLevelPanelMediator, _super); function ChooseLevelPanelMediator() { return _super !== null && _super.apply(this, arguments) || this; } ChooseLevelPanelMediator.prototype.init = function (data) { var _this = this; console.log(data + "跳转。。。"); this.view.drawView(); // let playerModel = this.getModel(PlayerModel); // this.view.setLevelDisplay(playerModel.getPlayerLv()); // // 监听修改经验事件 // this.bindEvent(PopAView.UPDATE_LEVEL, (exp)=>{ // this.sendCmd(UpdateExpCommand, exp); // }, this); this.registerNoti("UPDATE_COIN", function () { console.log('UPDATE_TILI**************'); _this.view.ShowUserCoinValue(); }, this); }; ChooseLevelPanelMediator.prototype.viewDidAppear = function () { }; ChooseLevelPanelMediator.prototype.destroy = function () { this.deleteKey("UPDATE_COIN"); }; return ChooseLevelPanelMediator; }(BaseMediator_1.default)); exports.default = ChooseLevelPanelMediator; cc._RF.pop();