We have created a great display panel for collecting star objects. Now, we can reuse what we've done to create a second panel to display the collection of key objects in the game.
To modify the game to make a second inventory panel for key collection, do the following:
- Duplicate the Panel-stars GameObject, naming the copy Panel-keys.
- With Panel-keys selected in the Hierarchy window, do the following:
- Change Text (Script) of the Text-title child from Stars to Keys.
- Ensuring Panel-keys is still selected, in Rect Transform, choose top-right, set Pos X to -10 (to move away from the right edge), and set Pos Y to -30 (to vertically align with Panel-keys).
- For each Image-icon-grey GameObject that is a child of all three panel-inventory-slots, change Image (Script) Source Image to icon_key_grey_100.
- For each Image-icon-color GameObject that is a child of all three...