I am using Destroy(gameObject.FindWithTag("projectile")); to destroy it after it hits Enemy.
It works fine when I shoot only one projectile but as soon as I shoot more than one, the projectile goes right thru enemy and keeps on flying withouth destroying.
Destroy(gameObject) in the OnCollisionEnter and ad that script to the projectile instead of on the character.
if you need it on the character you can do sometthing like
if(other.comparetag == “projectile”)
{
Destroy(other.gameObject) in the collision enter event.