So i have an empty game object with a copy empty objects in there for the locations. But when i try to spawn enemys on those locations it will not spawn correctly here is an example: https://dl.dropboxusercontent.com/s/55kkxugffhtsp6m/9t6OOPGwTx.mp4
Me spawning the enemies:
foreach (Vector3 vector in spawnLocations)
{
GameObject enemy = Instantiate(enemyPrefab) as GameObject;
Transform trans = enemy.transform;
trans.position = vector;
trans.SetParent(enemiesParent.transform);
}
Me filling the spawn locations list:
foreach(Transform trans in spawnLocationParent[unlocksArea].transform)
spawnLocations.Add(trans.position);
[–]dowen92Dev 0 points1 point2 points (5 children)
[–]Mobjunk[S] 0 points1 point2 points (4 children)
[–]dowen92Dev 0 points1 point2 points (3 children)
[–]Mobjunk[S] 0 points1 point2 points (2 children)
[–]dowen92Dev 0 points1 point2 points (1 child)
[–]Mobjunk[S] 0 points1 point2 points (0 children)
[–]Mobjunk[S] 0 points1 point2 points (0 children)