//private SaveGameData data; public PauseScreen(MainGameScreen screen) : base("Pause") { MenuItem resumeItem = new MenuItem("Resume"); MenuItem quitItem = new MenuItem("Quit"); resumeItem.Selected += ResumeGameEvent; quitItem.Selected += QuitSelected; MenuItems.Add(resumeItem); MenuItems.Add(quitItem); pausedScreen = screen; }
//private SaveGameData data; public PauseScreen(MainGameScreen screen) : base("Pause") { MenuItem resumeItem = new MenuItem("Resume"); MenuItem quitItem = new MenuItem("Quit"); resumeItem.Selected += ResumeGameEvent; quitItem.Selected += QuitSelected; MenuItems.Add(resumeItem); MenuItems.Add(quitItem); pausedScreen = screen; }