public void Open(int depth, PanelParam panelParam, UIPanelType backPanel) { UIController.Instance.DisableUICamera(); //Debug.Log("PanelBase Open"); this.SetPanelDepth(depth); this.SetBackPanel(backPanel); this.InitPanel(); this.Open(panelParam); StartCoroutine(this.PlayEffect(true)); this.panelParam = panelParam; }
public void OpenPanel(UIPanelType type, PanelParam panelParam) { this.OpenPanel(type, panelParam, UIPanelType.None); }
public void OpenPanel(UIPanelType type, PanelParam panelParam, UIPanelType backPanel) { PanelBase panel = null; int newDepth = 0; if (this.m_OpenedPanelDic.ContainsKey(type)) { panel = this.m_OpenedPanelDic[type]; newDepth = panel.GetDepth(); } else { panel= PoolMgr.Instance.GetPanel(type); if (panel == null) { Debug.Log("Panel is null " + type); return; } this.m_OpenedPanelDic.Add(type, panel); newDepth = this.GetTopDepth() + 2;//加2的原因是为了保险起见,因为有的时候只加1可能会出现面板重叠 } panel.Open(newDepth, panelParam, backPanel); }
protected abstract void Open(PanelParam panelParam);