I have this script for this game I'm making and I'm trying to make the object that a bullet hits dissapear.. Heres my script:
if (collision.gameObject.tag == "Enemy")
It seems to me you are missing the function input. change this line
for this one here:
void OnCollisionEnter(Collision collision)
I hope I was of help. :)
The error appears twice because you are calling "collision" on the if statement, and then again on Destroy(collision.gameobject), which by the way should be Destroy(collision.gameObject).