I am new to godot and I'm trying to make a simple 2d top down game.
I have a level with multiple enemies (instances of the same scene).
When the player enters into one of the enemies' detection area (Area2d with collisionshape2d), the detection area emits a signal ("body entered").
This signal is connected to a method which makes the enemy attack the player.
Currently, when the player enters the detection area of one enemy, all the enemies are trying to attack the player which is not the required behavior.
What can I do so only the enemy that encountering the player will "listen" to the emitted signal from his detection area?