Пример #1
0
 public void AddScreen(GameScreen screen)
 {
     // Allows you to add a screen to the stack, and load any necessary content
     screen.ScreenManager = this;
     if (this.isInitialized) { screen.LoadContent(); screen.Initialize(); }
     screens.Add(screen);
 }
Пример #2
0
 public void AddScreen(GameScreen screen)
 {
     // Allows you to add a screen to the stack, and load any necessary content
     screen.ScreenManager = this;
     if (this.isInitialized)
     {
         screen.LoadContent(); screen.Initialize();
     }
     screens.Add(screen);
 }