Create a 3D Object Cube, Sphere, Capsule or Cylinder
Name the item "Interactable"
Resize the interactable however you want. I chose to make the scale X:0.3, Y:0.3, Z:0.3.
Click on the tag dropdown, and click on Add Tag.
Name the tag "interactableItem" and click save
Click on the interactable 3D object and click tag then click on "interactableItem"
Drag in the 3D object into the prefab folder and it should appear as so
Now you can delete the 3D object from your hierarchy
Open the movementScript file in your scripts folder. it should currently look like this.
movementScript
Add the new lines of code where it states above
interactable script
Go back to the unity application and then drag one of the interactable items from the prefab folder onto the ground. and raise it up so it's not inside of the ground.
On the interactable item's Box Collider in the inspector menu, check "Is Trigger" so that it's on.
Click the play button to test the game and when you run into the interactable item, it should disappear and you should get the message "Touched the interactable item." in the console.
We will continue to work on interactables when we work with the UI and scoring.