I have an Area2D ("AttackRange") for my Player and I have an Area2D ("ClickArea") on my enemy.
I want to be able to click on the enemy when the player is withing range.
I have it to where I can click on the enemy as long as he is on screen.
I'm not sure how to do the checking that the specific enemy is withing the Area2D collision of my player.
My click function is on the enemy, so I don't know how pass the player is in range to the enemy. to check that it is in range and also clicked for that specific enemy.
Note: I put the Area2D on the player so there is just one checking distance instead of each enemy checking distance and also have a click box area.