Game Development Reference
In-Depth Information
Note
Note that prefabs are always highlighted in blue, both in the project asset and hierarchy
views. This makes them very easy to identify.
Tip
Always reset the position transform for prefabs to 0 ; this makes it a whole lot easier when
reusing them.
Note
For the sake of simplicity, I've kept the example simple, but you could expand on it to in-
clude a sprite renderer and use an additional image per place to identify it. Some great ex-
amples of map point icons can be found at http://calthyechild.deviantart.com/art/Fantasy-
Map-TutorialxResources-258559867 , which provides some great free resources and im-
ages.
Once the prefab is created, we can start to use it since this game object has now become
the first instance of our MapPoint prefab. So, rename it to Home and place it over the
town where the player starts, and then create a new tag for Home so that we can add it to
our NavigationManager script.
Search WWH ::




Custom Search