Hello ,
I am facing the same problem.
When the attacker kills the defender . The defender plays the death animation.But
attacker does not pass until the defender completely destroy.
I have Destroy the Box Collider of defender as well when die .
But also attacker does not pass until the defender destroy.
Please somebody help me
if(health<=0)
{
GetComponent<Animator>().SetTrigger("Die");
Destroy(gameObject.GetComponent<BoxCollider2D>());
Destroy(healthBar.gameObject);
Destroy(gameObject, 5f);
}