Exemple #1
0
 public void SwitchScreen(String screen)
 {
     if (this._screens.ContainsKey(screen))
     {
         Utils.Events.fire("ScreenManager::changeScreen", new object[]{ "test",new Vector2(10,10) } );
         this._currentScreen = this._screens[screen];
     }
 }
Exemple #2
0
 public void addScreen(String key, Screen screen)
 {
     this._screens.Add(key,screen);
     if (this._currentScreen == null)
     {
         SwitchScreen(key);
     }
 }