When a selection is made in the shop scene, we can take the information from the selection's scriptable object asset file and display its details within its textBoxPanel game object.
Let's take a look at the textBoxPanel object in the Hierarchy window:
The textBoxPanel game object holds a black quad that is used for its background. It also holds four other game objects, as follows:
- name: This game object contains a TextMesh component that receives data from the selection that was made that contains the iconName scriptable object variable.
- desc: This game object also holds a TextMesh component that receives data from the selection's description scriptable object variable.
- backPanel: This game object serves as a background for the selection grid.
- BUY?: This game object will be covered later on when we want to confirm that we want...