Esempio n. 1
0
 public static Level[,] getLevels(LevelManagerScreen fromScreen = null)
 {
     if (fromScreen != null)
         return fromScreen.levelManager.levels;
     else
         return TopLevelManagerScreen.levelManager.levels;
 }
Esempio n. 2
0
 public static Hero getMainLiveHero(LevelManagerScreen fromScreen = null)
 {
     Hero ret = null;
     if(fromScreen != null)
         ret = fromScreen.levelManager.heroes.FirstOrDefault(h => h.Alive);
     else
         ret = TopLevelManagerScreen.levelManager.heroes.FirstOrDefault(h => h.Alive);
     return ret; // null if all heroes are dead
 }
Esempio n. 3
0
 public static Hero[] getHeroes(LevelManagerScreen fromScreen = null)
 {
     if (fromScreen != null)
         return fromScreen.levelManager.heroes;
     else
         return TopLevelManagerScreen.levelManager.heroes;
 }