In this section, we will add an image of cherries and a text object for displaying the number of cherries the Cucumber Man has.
We will start by adding the cherry image:
- Download the Cherries.png file from the publisher's website
- Drag that image into the Assets | Cherry folder in the Project panel
- Select the imported image and, in the Inspector panel, change the Texture Type to Sprite (2D and UI)
- In the Hierarchy panel, right-click the HUD_Canvas and select UI | Image
- In the Inspector panel, click the small circle to the right of the setting under Image (Script) | Source Image
- Select the Cherries.png image you added in step 2
- In the Inspector panel, rename this as Cherries
- Click Rect Transform | Scale ...