Exemple #1
0
 /// <summary>
 /// Removes a screen from the ScreenManager.
 /// </summary>
 /// <param name="screen">Screen to be removed.</param>
 public static void RemoveScreen(GameScreen screen)
 {
     screen.UnloadAssets();
     ScreenList.Remove(screen);
     if (ScreenList.Count < 1)
     {
         AddScreen(new TestScreen());
     }
 }