/// <summary> /// Constructor. /// </summary> public GameOverScreen(int previousScore, Screen replayScreen) : base("Game Over",Color.Red) { IsPopup = true; this.replayScreen = replayScreen; this.previousScore = previousScore; }
/// <summary> /// Constructor. /// </summary> public GameWonScreen(int previousScore, Screen replayScreen, Screen nextScreen = null) : base("Game Won!", Color.LightSalmon) { IsPopup = true; this.replayScreen = replayScreen; this.nextScreen = nextScreen; }
/// <summary> /// The constructor is private: loading screens should /// be activated via the static Load method instead. /// </summary> private LoadingScreen(ScreenManager screenManager, bool loadingIsSlow, Screen[] screensToLoad) { this.loadingIsSlow = loadingIsSlow; this.screensToLoad = screensToLoad; TransitionOnTime = TimeSpan.FromSeconds(0.5); }