public bool Remove(Type type) { UIBase s = null; if (!m_uiDic.TryGetValue(type, out s)) { return(false); } UIManager.Instance.CloseUI(s); s.Deinitialization(); m_uiDic.Remove(type); return(true); }
public bool Remove(Type type) { UIBase s = null; if (!m_uiDic.TryGetValue(type, out s)) { return(false); } UIManager.Instance.CloseUI(s); s.Deinitialization(); m_uiDic.Remove(type); return(true); }