当前位置: 首页>>代码示例>>C#>>正文


C# ScreenManager.GetScreens方法代码示例

本文整理汇总了C#中GameStateManagement.ScreenManager.GetScreens方法的典型用法代码示例。如果您正苦于以下问题:C# ScreenManager.GetScreens方法的具体用法?C# ScreenManager.GetScreens怎么用?C# ScreenManager.GetScreens使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GameStateManagement.ScreenManager的用法示例。


在下文中一共展示了ScreenManager.GetScreens方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Load

 public static void Load(ScreenManager screenManager, bool loadingIsSlow, params GameScreen[] screensToLoad)
 {
     foreach (GameScreen screen in screenManager.GetScreens())
         screen.ExitScreen();
     LoadingScreen loadingScreen = new LoadingScreen(screenManager, loadingIsSlow, screensToLoad);
     screenManager.AddScreen(loadingScreen);
 }
开发者ID:BenFradet,项目名称:OldXnaStuff,代码行数:7,代码来源:LoadingScreen.cs

示例2: Load

        public static void Load(ScreenManager screenManager, bool loadingIsSlow,
                                PlayerIndex? controllingPlayer,
                                params MainMenuScreen[] screensToLoad)
        {
            foreach (GameScreen screen in screenManager.GetScreens())
                screen.ExitScreen();

            SplashScreenLoading splashScreenLoading = new SplashScreenLoading(screenManager, loadingIsSlow, screensToLoad);

            screenManager.AddScreen(splashScreenLoading, controllingPlayer);
        }
开发者ID:Rhodderz,项目名称:CuteKillers,代码行数:11,代码来源:SplashScreenLoading.cs

示例3: Load

        /// <summary>
        /// Activates the loading screen.
        /// </summary>
        public static void Load(ScreenManager screenManager, bool loadingIsSlow, params GameScreen[] screensToLoad)
        {
            // Tell all the current screens to transition off.
            foreach (GameScreen screen in screenManager.GetScreens())
                screen.ExitScreen();

            // Create and activate the loading screen.
            LoadingScreen loadingScreen = new LoadingScreen(screenManager,
                                                            loadingIsSlow,
                                                            screensToLoad);

            screenManager.AddScreen(loadingScreen);
        }
开发者ID:GarethIW,项目名称:LD29,代码行数:16,代码来源:LoadingScreen.cs

示例4: Load

        /// <summary>
        /// Активация экрана загруззки.
        /// </summary>
        public static void Load(ScreenManager screenManager, bool loadingIsSlow,
                                PlayerIndex? controllingPlayer,
                                params GameScreen[] screensToLoad)
        {
            //Даем команду текущим экранам исчезнуть.
            foreach (GameScreen screen in screenManager.GetScreens())
                screen.ExitScreen();

            //Создаем и активируем экран загрузки.
            LoadingScreen loadingScreen = new LoadingScreen(screenManager,
                                                            loadingIsSlow,
                                                            screensToLoad);

            screenManager.AddScreen(loadingScreen, controllingPlayer);
        }
开发者ID:pesta123,项目名称:MonoGame---GameStateManagement,代码行数:18,代码来源:LoadingScreen.cs

示例5: Load

        /// <summary>
        /// Activates the loading screen.
        /// </summary>
        public static void Load(ScreenManager screenManager, bool loadingIsSlow,
                                PlayerIndex? controllingPlayer,
                                params GameScreen[] screensToLoad)
        {
            // Tell all the current screens to transition off.
            foreach(GameScreen screen in screenManager.GetScreens())
                screen.ExitScreen();

            // Remove any existing looping sounds
            Helpers.GetSoundLibrary(screenManager).StopAllSounds();

            // Create and activate the loading screen.
            LoadingScreen loadingScreen = new LoadingScreen(screenManager,
                                                            loadingIsSlow,
                                                            screensToLoad);
            screenManager.AddScreen(loadingScreen, controllingPlayer);
        }
开发者ID:kktseng,项目名称:CritterCampClient,代码行数:20,代码来源:LoadingScreen.cs

示例6: Load

        /// <summary>
        /// Activates the loading screen.
        /// </summary>
        public static void Load(ScreenManager screenManager, bool loadingIsSlow,
            PlayerIndex? controllingPlayer,
            params GameScreen[] screensToLoad)
        {
            // Tell all the current screens to transition off.
            foreach (GameScreen screen in screenManager.GetScreens())
                screen.ExitScreen();

            //Flush GC
            GC.Collect();

            // Create and activate the loading screen.
            LoadingScreen loadingScreen = new LoadingScreen(screenManager,
                                                            loadingIsSlow,
                                                            screensToLoad);

            screenManager.AddScreen(loadingScreen, controllingPlayer);
        }
开发者ID:agentcox,项目名称:NodeHackEX-xna,代码行数:21,代码来源:LoadingScreen.cs


注:本文中的GameStateManagement.ScreenManager.GetScreens方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。