public void ScreenShow(ScreenType screenType) { if (mListUIBase.Exists(st => st.mScreenType == screenType)) { mCurrentScreen.ScreenHide(); Base_UI screen = mListUIBase.Find(st => st.mScreenType == screenType); screen.ScreenShow(); mCurrentScreen = screen; } }
void HideAllScreens() { foreach (Base_UI ui in mListUIBase) { if (ui.mScreenType != ScreenType.MainMenu) { ui.ScreenHide(); } else { mCurrentScreen = ui; } } }