I need two opposing waves of enemies to rush at each other and stop and fight when they get close. I use OnTriggerEnter2D for this. One eventually dies and the other needs to continue moving. There I have a problem - using OnTriggerExit2D does nothing. (checked with Debug.Log(“xxx”), it doesnt trigger at all)
I destroy the dead enemy with Destroy(gameObject);
Please help me.