So, im trying to spawn my Aliens as a Child and that works fine, but how do I get them to spawn beside eachother now instead of at the 0,0,0 position of the parent.
This is my current code to instantiate them as a Child
public int AmmountAliens = 8;
public GameObject Aliens;
public GameObject AliensParent;
void Start ()
{
for(int i = 0; i < AmmountAliens; i++)
{
GameObject obj;
obj = (GameObject)Instantiate(Aliens, AliensParent.transform.position, Aliens.transform.rotation);
obj.transform.parent = AliensParent.transform;
}
}
sorry if my question isnt completly understandable, getting late over here