Exemplo n.º 1
0
 public ScreenManager(Screen activeScreen, List<Screen> screens)
 {
     this.activeScreen = activeScreen;
        //this.screens = new List<Screen>(screens.Count);
     //this.screens.AddRange(screens);
     this.screens = screens;
 }
Exemplo n.º 2
0
 public void setActiveScreen(int index)
 {
     for(int i=0; i<screens.Count; i++)
     {
         if(screens[i] == this.activeScreen)
         {
             screens[i].setActive(false);
             //break;
         }
     }
     this.activeScreen = screens[index];
     this.activeScreen.setActive(true);
 }