So, I feel like this should be an easy fix but here goes nothing. The player has a OnTriggerEnter2D and is the parent of a child. its on trigger says
private void OnTriggerEnter2D(Collider2D collision)
{
if (collision.tag == "Enemy")
{
Destroy(gameObject);
}
}
But, when a child game object collides with the enemy it destroys the whole Player. Any ideas?