For my game I will have to use Instantiate to spawn a lot of the same object (Carrot). My main character has a script attached which tells it to destroy that object (Carrot)but when I drag the object (Carrot) I want to destroy into the inspector it only destroys that specific object (Carrot). Is there a way to make it only destroy the object it comes in contact with?
You’ll have to use colliders to detect when your objects come in contact with one another. You can use tags to determine what object you’ve collided with and whether to destroy it or not. Check out the Unity tutorials: https://unity3d.com/learn/tutorials/. The Space Shooter tutorial and the 2D UFO tutorial have easily accessible information on collisions.
Alternatively, check out the Unity Manual page on colliders: https://docs.unity3d.com/Manual/CollidersOverview.html.