Creating Collectibles

At this point, we have the basis of our game, but now we need to add some gameplay to our world. Perhaps we will have it so that we need to collect all of the coins in the level and then the goal will open:

  1. Create a new Particle System by going into GameObject | Particle System. Change the name of the object to Collectible and center it in the world by changing its position to 0, 0, 0. Next, we need to assign the object's tag to Orb. To do so, select Tag | Add Tag. Once at the Tag menu, press the + button to the right of Tags and then from the assign Tag 0, put in Orb and press Enter:
    Creating Collectibles
  2. Then, select the Collectible game object ...

Get Unity 5: Learning C# by Developing Games now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.