Book Image

Creating E-Learning Games with Unity

By : David Horachek
Book Image

Creating E-Learning Games with Unity

By: David Horachek

Overview of this book

Table of Contents (17 chapters)
Creating E-Learning Games with Unity
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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 object.

  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.