Now that we know how to create the user interface for our game, we can start creating the collectable assets that will be displayed there.
What we will learn here is extremely useful because all the collectables usually share the same foundations, which means that after learning how to create one type of collectable, we also know how to create all the others. In this chapter, we'll start by developing a coin that can be collected by the player, stored in our script and displayed on our UI. We will also take a look how to adapt the same script to work as a different type of collectable and how we can change the gameplay depending on the number of health points or magic points we have.