void SpawnEntities() { List <EntityScript> currentEnemies = new List <EntityScript> (); foreach (GameObject entity in playerList) { pcScript e = Instantiate(entity).GetComponent <pcScript> (); currentPlayers.Add(e); Debug.Log(e); // TODO Place them on the screen } foreach (GameObject entity in enemyList) { EntityScript e = Instantiate(entity).GetComponent <EntityScript> (); e.battleManager = this; e.InitializeCombat(currentPlayers); currentEnemies.Add(e); // TODO Place them on the screen } foreach (pcScript entity in currentPlayers) { entity.battleManager = this; entity.playerGUI = playerUI; entity.combatGUI = playerUI; entity.InitializeCombat(currentEnemies); // TODO Place them on the screen } activeEnemies = currentEnemies; turnManager.StartCombat(currentPlayers, currentEnemies); }