private LoadingScreen(bool aLoadingIsSlow, GameScreen[] aScreensToLoad) { this._loadingIsSlow = aLoadingIsSlow; this._screensToLoad = aScreensToLoad; IsSerializable = false; TransitionOnTime = TimeSpan.FromSeconds(0.5); }
public static void AddScreen(GameScreen aScreenToAdd) { aScreenToAdd.IsExiting = false; if (_isInitialized) { aScreenToAdd.LoadContent(); } _screens.Add(aScreenToAdd); }
public static void RemoveScreen(GameScreen aScreenToRemove) { if (_isInitialized) { aScreenToRemove.UnloadContent(); } _screens.Remove(aScreenToRemove); _screensToUpdate.Remove(aScreenToRemove); }