Not sure if I do this correctly, please help me understand.
Let's say I have an enemy_class.gd and 2 enemy scripts extending from it.
enemy_class.gd
enemyA - enemyA.gd #extents enemy_class.gd
enemyB - enemyB.gd #extents enemy_class.gd
enemy_class.gd has a death function.
if health <= 0:
queue_free()
What if when dead I also want only enemyB to print("B is dead")? Can I do this from enemy_class.gd? or do I have to move the death function to enemyB.gd and do it from there.
Thanks