Hey guys,
I’m trying to get several prefabs to instantiate under several parent objects.
This is my code:
public GameObject [] shipSystem;
public Transform [] hardPoint;
void Start ()
{
for (int i = 0; i = 1; i++)
{
GameObject _installSystem = (GameObject)GameObject.Instantiate(shipSystem*);*_
installSystem .transform.parent = hardPoint*.transform;*
}
}
And I get this compiler error:
error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement
Does anyone know what I’m doing wrong?
Thanks.