Game Development Reference
In-Depth Information
Creating the FlagLocators GameObject
Let's create the hierarchy for FlagLocators in the scene as follows:
1. Create 10 Cube GameObjects. Place them in a variety of interesting places,
well spaced out in the level. Put some of them on the ground, some in the
hills, some on the mountains, and so on. Name these FlagLocator1 to
FlagLocator10 .
2. Disable all of the mesh renderers to make these objects invisible in the
rendered scene. We will leave these components attached for debugging,
but we don't want to draw them normally. Should we want to see where these
locators are later on, we just need to enable the renderers to show the geo-
metry.
3. Create another empty GameObject , and name it FlagLocators . Drag-
and-drop all of the locators from step one underneath this object.
Congratulations! We now have a data collection of potential places for flags to spawn
in mission one. We will select five of these in the SetupMissionOne script dis-
cussed in the following section.
Search WWH ::




Custom Search