public static void LoadContent(GameScreen gameScreen) { gameScreen.LoadScreenContent(); }
/// <summary> /// Adds a new screen to the screen manager. /// </summary> public void AddScreen(GameScreen screen) { screen.ScreenManager = this; screen.IsExiting = false; _screens.Add(screen); #if WINDOWS_PHONE // update the TouchPanel to respond to gestures this screen is interested in TouchPanel.EnabledGestures = screen.EnabledGestures; #endif // If we have a graphics device, tell the screen to load content. if (_isInitialized) { #if WINDOWS screen.LoadScreenContent(); #elif WINDOWS_PHONE screen.LoadScreenContent(false); #endif } }
public static void LoadContent(GameScreen gameScreen, bool instancePreserved) { gameScreen.LoadScreenContent(instancePreserved); }