// ========================================================================================= // REMOVE SCREEN // ========================================================================================= public void RemoveScreen(Screen screen) { if (isInitialized) { screen.UnloadContent(); } screens.Remove(screen); screensToUpdate.Remove(screen); }
// ========================================================================================= // ADD SCREEN // ========================================================================================= public void AddScreen(Screen screen) { screen.ScreenManager = this; screen.IsExiting = false; if (isInitialized) { screen.LoadContent(); } screens.Add(screen); }