Time for action - tag the tray
Save and close the HeartBounce script we'll come back to it in a jiffy. First, let's tag the tray Game Object so that we can determine if the heart has collided with it.
- Click on the HandsAndTray Game Object in the Hierarchy panel.
- In the Inspector panel, just beneath the Game Object's name, is a dropdown labeled Tag. Choose Add Tag from the bottom of this drop-down list.
- We're taken to the Tag Manager. Click on the gray arrow beside the word Tags at the top of the list.
- There's an invisible text field next to the line labeled Element 0. This takes a leap of faith the first time you do it. Click on the blank area ...