public void StartNextBoss() { GameManager.fightHandler = new FightHandler(); Entity boss = EntityFactory.BuildNewEntity(Run.run.CurrentDungeon.CurrentBoss.Definition); fightHandler.Entities.Add(boss.Id, boss); //Update boss bossObject.GetComponent <BossBehaviour>().InitBoss(Run.run.CurrentDungeon.CurrentBoss, boss); int index = 0; foreach (Hero hero in Run.run.Team) { Entity heroEntity = EntityFactory.BuildNewEntity(hero.Definition); GameManager.fightHandler.Entities.Add(heroEntity.Id, heroEntity); //Update Hero heroObjects[index].GetComponent <HeroesBehaviour>().InitHero(hero, heroEntity); index++; } pulled = false; }