public void ShowScreen(UiScreenKind screenKind) { _curScreen?.Hide(); _curScreen = GetScreen(screenKind); _curScreen.Show(); }
public void ShowScreen(UiScreenKind screenKind) { _curScreen?.Hide(); _curScreen = GetScreen(screenKind); _curScreen.Show(); foreach (var defaultElement in _curScreen.OtherUiElements) { defaultElement.Hide(); } foreach (var defaultElement in _curScreen.DefaultUiElements) { defaultElement.Show(); } }