Checking Collision Upon an Array Of Objects

Im kind of drawing a blank on how to go about this. Basically, I have an attack for one character that will collide with the opposing characters. If they make collision, a marker will appear over their heads and eventually will be damaged.

My question is, how would I check to see which character has been collided with so it will create the marker response of that individual character?

I would assume I create a GameObject array for all the opposing characters to collide with. Would I use a foreach loop to check which has been hit?

You’re better off placing that logic in the individual targets, not the attacker. Let each target detect collisions, and if the collision is with an object of a certain type or having a certain tag, then perform your damage logic. It should much easier than doing it in the attacker, and there’s no need to maintain an array of hit targets in the attacker.