本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}