Game Development Reference
In-Depth Information
Next, create a new instance of our MapPoint prefab by dragging the prefab on to the
scene and placing it over the town of Kirkidw. Rename it to Kirkidw and create/set a tag
with the same name.
Note
As highlighted earlier, if you wish, you can also add a sprite to the place's game object to
highlight the town's position on the map. If you want, you can add the sprite renderer to
the prefab and change the sprite image on each instance appropriately. If it's a common
image, then just set the sprite on the prefab.
For the best results and to make the scene easy to read, add any new map points as chil-
dren of the background texture (worldmap); this keeps the points of interest both anchored
to the texture and neatly organized.
Search WWH ::




Custom Search