/// <summary> /// Loads Levels /// </summary> public static void Load(MenuSystem MenuSystem, bool loadingIsSlow, string levelName) { // Tell all the current screens to transition off. foreach (GameScreen screen in MenuSystem.GetScreens()) screen.ExitScreen(); // Create and activate the loading screen. LoadingScreen loadingScreen = new LoadingScreen(MenuSystem, loadingIsSlow, levelName); MenuSystem.AddScreen(loadingScreen); }