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