public void Navigate(Screen screen) { activeScreen.Hide(); switch (screen) { case Screen.Game: activeScreen = actionScreen; break; case Screen.Start: activeScreen = startScreen; break; } activeScreen.Show(); }
public void setScreen(Screen screen) { currentScreen = screen; }