Ejemplo n.º 1
0
 protected override void Initialize()
 {
     GameScreen[] screens = new GameScreen[3];
     screens[0] = new SplashScreen();
     screens[1] = new MenuScreen();
     screens[2] = new PlayScreen();
     screenManager = new ScreenManager(screens);
     base.Initialize();
 }
Ejemplo n.º 2
0
 public void ChangeScreen(int screenID)
 {
     this.CurrendScreen.UnloadContent();
     this.CurrendScreen = gameScreens[screenID];
     this.CurrendScreen.LoadContent(_content);
 }
Ejemplo n.º 3
0
 public ScreenManager(GameScreen[] gameScreens)
 {
     this.gameScreens = gameScreens;
     this.CurrendScreen = gameScreens[0];
     Instance = this;
 }