be19dfed-3fa6-4435-bc2e-9b082d723958.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. "use strict";
  2. cc._RF.push(module, 'be19d/tP6ZENbwumwgtcjlY', 'guidePanel');
  3. // Script/guide/guidePanel.ts
  4. "use strict";
  5. var __extends = (this && this.__extends) || (function () {
  6. var extendStatics = function (d, b) {
  7. extendStatics = Object.setPrototypeOf ||
  8. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  9. function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
  10. return extendStatics(d, b);
  11. };
  12. return function (d, b) {
  13. extendStatics(d, b);
  14. function __() { this.constructor = d; }
  15. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  16. };
  17. })();
  18. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  19. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  20. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  21. else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  22. return c > 3 && r && Object.defineProperty(target, key, r), r;
  23. };
  24. Object.defineProperty(exports, "__esModule", { value: true });
  25. var App_1 = require("../Manager/App");
  26. var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
  27. var guidePanel = /** @class */ (function (_super) {
  28. __extends(guidePanel, _super);
  29. function guidePanel() {
  30. return _super !== null && _super.apply(this, arguments) || this;
  31. }
  32. guidePanel_1 = guidePanel;
  33. // LIFE-CYCLE CALLBACKS:
  34. guidePanel.getInstance = function () {
  35. if (this._instance == null) {
  36. this._instance = new guidePanel_1();
  37. }
  38. return this._instance;
  39. };
  40. guidePanel.prototype.onLoad = function () {
  41. guidePanel_1._instance = this;
  42. };
  43. guidePanel.prototype.start = function () {
  44. };
  45. guidePanel.prototype.showCurGuide = function () {
  46. for (var i = 0; i < 5; i++) {
  47. this.node.children[i].active = false;
  48. }
  49. this.node.children[App_1.App.DataManager.guideStep].active = true;
  50. };
  51. guidePanel.prototype.hideGuideStep = function () {
  52. for (var i = 0; i < 5; i++) {
  53. this.node.children[i].active = false;
  54. }
  55. };
  56. var guidePanel_1;
  57. guidePanel._instance = null;
  58. guidePanel = guidePanel_1 = __decorate([
  59. ccclass
  60. ], guidePanel);
  61. return guidePanel;
  62. }(cc.Component));
  63. exports.default = guidePanel;
  64. cc._RF.pop();