Пример #1
0
 public void Navigate(Screen screen)
 {
     activeScreen.Hide();
     switch (screen)
     {
         case Screen.Game:
             activeScreen = actionScreen;
             break;
         case Screen.Start:
             activeScreen = startScreen;
             break;
     }
     activeScreen.Show();
 }
Пример #2
0
 public void setScreen(Screen screen)
 {
     currentScreen = screen;
 }