Game Development Reference
In-Depth Information
transform.position.y,transform.position.z),
transform.rotation);
Instantiate(Alien2,Vector3(-15+(3*i),
transform.position.y-3,transform.position.z),
transform.rotation);
Instantiate(Alien3,Vector3(-15+(3*i),
transform.position.y-6,transform.position.z),
transform.rotation);
Instantiate(Alien4,Vector3(-15+(3*i),
transform.position.y-9,transform.position.z),
transform.rotation);
}
}
6. Add the script to the SwarmManager game object in the scene and then drag
the four aliens prefabs in the exposed GameObject variables, as shown in
the following screenshot:
Search WWH ::




Custom Search