//The constructor is private because when we want to use a loadingscreen we should use the static Load function private LoadingScreen(ScreenManager screenManager, bool loadingIsSlow, GameScreen[] screensToLoad) { this.loadingIsSlow = loadingIsSlow; this.screensToLoad = screensToLoad; TransitionOnTime = TimeSpan.FromSeconds(0.5); }
public void AddScreen(GameScreen screen) { screen.ScreenManager = this; screen.IsExiting = false; screen.Activate(); screens.Add(screen); }
public void RemoveScreen(GameScreen screen) { screen.Unload(); screens.Remove(screen); tempScreensList.Remove(screen); }