/// <summary> /// Create a new GameplayScreen object from the stats provided. /// </summary> public GameplayScreen(SaveManager saveManager = null) : this() { // If save manager does not exist, then new game was selected. if (saveManager == null) { this.saveManager = new SaveManager(); } // Otherwise set the current save manager to the save state given. else { this.saveManager = saveManager; } }
/// <summary> /// Event handler for when the Continue menu entry is selected. /// </summary> void ContinueMenuEntrySelected(object sender, EventArgs e) { SaveManager saveManager = new SaveManager(true); if (saveManager.StatisticsManager != null) { if (Session.IsActive) { ExitScreen(); } LoadingScreen.Load(ScreenManager, true, new GameplayScreen(saveManager)); } }