public bool IsUIOpen <T>() where T : UIWindowBase { for (int i = 0; i < m_uiList.Count; i++) { UIWindowBase tempWin = m_uiList[i]; if (tempWin.GetType() == typeof(T) && (tempWin.windowStatus == UIWindowBase.WindowStatus.Open || tempWin.windowStatus == UIWindowBase.WindowStatus.OpenAnim)) { return(true); } } return(false); }