Exemple #1
0
    void CloseUIById(int id)
    {
        if (m_UIList.ContainsKey(id))
        {
            WindowBase winbs = m_UIList[id];
            winbs.F_RemoveSound();
            winbs.UnRegisterEvent();
            winbs.F_OnRemove();

            m_UIList.Remove(id);
            RemoveEUIToIdDec(winbs.F_GetEUI(), id);
            m_IdPosList.Remove(id);
            m_DataModule.Remove(id);
            Unload(winbs);
        }
    }