Exemple #1
0
        public void CloseAndDestoryUI(string uibaseName)
        {
            APanelBase uibase = GetUI(uibaseName);

            if (uibase != null)
            {
                uibase.CloseUI();
                uibase.Destroy();
            }
        }
Exemple #2
0
        public void CloseAllUI()
        {
            if (m_openUIbaseList == null || m_openUIbaseList.Count <= 0)
            {
                return;
            }

            for (int i = m_openUIbaseList.Count - 1; i >= 0; i--)
            {
                APanelBase ui = m_openUIbaseList[i];
                if (!ui.m_IsAlwaysOpen)
                {
                    ui.OnCloseEvent = null;
                    ui.CloseUI();
                    m_openUIbaseList.Remove(ui);
                }
            }
        }