Game Development Reference
In-Depth Information
Creating the NpcLocators Prefab
The
NpcLocators
Prefab will hold a collection of
locator
GameObjects that the
setupLevel3
prefab will use to pick locations for the NPCs. This should be a child of
the
_level3
object and can be constructed from the
FlagLocators
GameObject
from
LEVEL 2
.
1. Locate the
FlagLocators
objects beneath the hierarchy of the
_level3
ob-
ject.
2. Rename the object to
NpcLocators
as shown in the following screenshot:
3. Feel free to mix up the locations of the objects to various places in the scene;
this way, the player will not memorize the locations from
LEVEL2
. For variety,
consider placing some on top of the mountains in the middle or around the
periphery of the level.