Hi,
I want to do so that the player can only do damage to one enemy at a time. In order to take attack on an enemy I want the player to mouse left click on the enemy.
I have accomplished that when the player mouse left click on an enemy the enemy will be targeted and take damage from the player, but right now it is possible for the player to just continue mouse left clicking on more enemies and these enemies will simultaneously also take damage from the player.
Simply put, how could I limit attack to one enemy at a time?