/// <summary>
        /// Loads Levels
        /// </summary>
        public static void Load(MenuSystem MenuSystem, bool loadingIsSlow, string levelName)
        {
            // Tell all the current screens to transition off.
            MenuSystem.ExitAll();

            // Create and activate the loading screen.
            LoadingScreen loadingScreen = new LoadingScreen(MenuSystem,
                                                            loadingIsSlow,
                                                            levelName);
            MenuSystem.AddScreen(loadingScreen);
        }
Esempio n. 2
0
 public void OnShowMainMenu()
 {
     SoundManager.PlaySfx("ButtonPress");
     menuSystem.ExitAll();
     ScreenFaderFadeIn(0.8f, () => OnEnterStateMenus());
 }