title: How do I check for an object at a certain position?
body: <p>I have a black targetBox that is used to check the area it covers for the existence of Block objects such as the grey one in the top left hand corner and return a boolean if there is a Block at that position.
  It's a tile system and I have included one case where it would return "false" and one that would return "true".</p>
  
  <p><img src="https://i.stack.imgur.com/OI9Go.png" alt="This would return false"></p>
  
  <p><img src="https://i.stack.imgur.com/QXpmG.png" alt="This would return true"></p>
  
  <p>I understand I can do something like</p>
  
  <pre><code>public bool checkTargetObjects()
  {
      if(block.x == target.x &amp;&amp; block.y == target.y) 
      {
          return true;
      }
      else
      {
      return false;
      }
  }
  </code></pre>
  
  <p>But I am unsure of how to look for Block objects at the position. How can I do this?</p>