void mapPlacer() { foreach (NewSpawnPoint newSpawn in spawnPoints) { GameObject temp = Resources.Load("EnemyCopy") as GameObject; temp.GetComponent <Stats>().unitID = newSpawn.enemyID.unitID; temp.GetComponent <Stats>().unitIdx = newSpawn.enemyID.idx; temp.name = newSpawn.enemyID.unitID; Instantiate(temp, GameObject.Find(newSpawn.tileID).transform.position + new Vector3(0, 1.4f, 0), setQuaterRotation(0, 0, 0)); // temp. } Debug.Log(" The Boss is here " + CurrentGame.game.memoryGeneral.enemiesInMaps.boss.unitID); if (CurrentGame.game.memoryGeneral.enemiesInMaps.boss.unitID != "") { EventDriver eventDrivers = GameObject.FindObjectOfType <EventDriver>(); GameObject temp1 = Resources.Load("BossCopy") as GameObject; temp1.GetComponent <Stats>().unitID = CurrentGame.game.memoryGeneral.enemiesInMaps.boss.unitID; temp1.GetComponent <Stats>().unitIdx = CurrentGame.game.memoryGeneral.enemiesInMaps.boss.idx; Instantiate(temp1, eventDrivers.FindBossSpawns().gameObject.transform.position + new Vector3(0, 1.4f, 0), setQuaterRotation(0, 0, 0)); } }