var t = require; var e = module; var i = exports; var s, o = (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 {ccclass: a, property: n} = cc._decorator; e = s = class extends cc.Component { constructor() { super(...arguments), (this.layerBg = null), (this.effectMovie = null); } showChangeSceneEffect() { return new Promise(t => { (this.effectMovie.active = !0), cc.tween(this.effectMovie.getChildByName("LoadReel")).by(2, {angle: 360}).repeatForever().start(), t(); }); } hideChangeSceneEffect() { this.effectMovie.active && (this.effectMovie.getChildByName("LoadReel").stopAllActions(), (this.effectMovie.active = !1)); } onLoad() { (s.ins = this), cc.game.addPersistRootNode(this.node), cc.game.addPersistRootNode(this.effectMovie), (this.effectMovie.active = !1), this.layerBg && ((s.layerBg = cc.instantiate(this.layerBg)), s.layerBg.on(cc.Node.EventType.TOUCH_END, s.onTouchBg, this)); } static reset() { cc.isValid(s.layerBg) || ((s.layerBg = cc.instantiate(this.layerBg)), s.layerBg.on(cc.Node.EventType.TOUCH_END, s.onTouchBg, this)); } static onTouchBg() { s.curBgView && s.curBgView.onTouchBg && s.curBgView.onTouchBg(); } }; (e.Game_Main = 0), (e.UI_Main = 50), (e.UI_Popup = 100), (e.UI_Tips = 150), (e.UI_Guide = 200), (e.UI_High_Tips = 250), (e.layerBg = null), o([n(cc.Prefab)], e.prototype, "layerBg", void 0), o([n(cc.Node)], e.prototype, "effectMovie", void 0), (e = s = o([a], e)), (i.default = e = s);