Hey, why not putting
GetComponent<'NavMeshAgent>().enabled = false;
GetComponent<'EnemyAI>().enabled = false;
inside the Die() method, isn’t it more effective than checking if statement in update inside the EnemyAI class?
i tested both warriants and they behave the same