title: Using GetComponent<>() with a variable?
body: <p>I'm trying to create a targeting system.</p>
  
  <p>When I click on a skeleton enemy I want to be able to access the health and damage from the skeleton script and likewise, when I click on a different enemy, I want to get <strong>their</strong> specific health and damage.</p>
  
  <p>The only way I can think of doing this is using the <code>GetComponent</code> method, but is there a way to use a generic <code>GetComponent</code> that uses a variable depending on what enemy I have targeted so I can get the data of a selected enemy based on that variable?</p>