I have a player script that is doing an attack, and a keyframe of the animation I call the Attack() method. The method does a Physics2D.OverlapCircle check in front of the player. If an object connects with the circle, I currently have it run enemy.GetComponent<Health>().Test();, which runs a method where the only line is Debug.Log("Does");. I know that's probably obvious from the screenshots shared but making sure it's understood what is going on
So, I put the Health component onto an enemy, the player performs Attack() and it works... when there's 1 instance of a gameobject with the script. If I have to objects with the Health component, only one of the objects will actually have the Test() method run. I've looked up online for some help, but I'm only getting tips for when there's multiple components on ONE game object rather than when there's multiple OBJECTS that have the same component
Am I missing somethin here?