public void DeletePanel(string name) { PanelBase panelBase = UIPanelManager.instance.GetPanel(name); if (panelBase != null) { panelBase.Delete(); } }