Game Development Reference
In-Depth Information
}
}
4. Add this script to all four Alien prefabs in the Project panel.
5. To have this script work we need to Perform a last operation, though. We
need to make another Prefab out of the SwarmManager game object.
6. Create a new Prefab in the Project panel, name it SwarmManager and
then drag the SwarmManager game object from the Hierarchy panel into
the SwarmManager Prefab in the Project panel. Use the following screen-
shot as a reference:
7. The last operation is to drag the SwarmManager prefab we just created into
the My Swarm variable of the Bound Collision (Script) we added to each
Alien prefab, as shown in the following screenshot:
Search WWH ::




Custom Search