import { _decorator, Component, Node, Prefab } from 'cc'; import { SelectDifficultyPanel } from './SelectDifficultyPanel'; import { SelectSkinPanel } from './SelectSkinPanel'; import { SelectMapPanel } from './SelectMapPanel'; import { LayerMgr } from '../../script/Manager/LayerMgr'; const { ccclass, property } = _decorator; @ccclass('SuperFindPanel') export class SuperFindPanel extends Component { @property(SelectDifficultyPanel) selDifPanel: SelectDifficultyPanel = null @property(SelectSkinPanel) selSkinPanel: SelectSkinPanel = null @property(SelectMapPanel) selMapPanel: SelectMapPanel = null OpenselDifPanel() { this.selDifPanel.node.active = true; this.selDifPanel.init(); } OpenSelSkinPanel() { this.selSkinPanel.node.active = true; this.selSkinPanel.init(); } OpenSelMapPanel() { this.selMapPanel.node.active = true; } CloseSelDifPanel() { this.selDifPanel.node.active = false; } CloseSelSkinPanel() { this.selSkinPanel.node.active = false; } CloseSelMapPanel() { this.selMapPanel.node.active = false; } }