Displaying single object pickups with carrying and not-carrying text
Often the simplest inventory situation is to display text to tell players whether they are carrying a single item (or not). We'll add the ability to detect collisions with GameObject tagged Star to the SpaceGirl mini-game, and display an on-screen message stating whether a star has been collected or not:

At the end of the recipe, in the There's more... section, we'll learn to adapt this recipe to maintain an Integer total of how many stars have been collected, for a version of the game with lots of stars to collect.
Getting ready
For this recipe, we have prepared a folder named Fonts in the 03_02
folder.
This recipe assumes that you are starting with the Simple2Dgame_SpaceGirl
project that was set up from the first recipe in this chapter. So, make a copy of that project, and work on this copy.
How to do it...
To display text to inform the user about the status of carrying a single object pickup, follow these steps:
- Start with a...