title: Unity - Change all objects with a certain tag
body: <p>I am making a game in unity and have added a collision script which runs when my player hits a block. If possible I would like it to select every gameObject with a certain tag and disable a specific feature. For example my end product would be to disable the useGravity feature in the attachedRigidbody of every gameObject with the tag "Obstacle" however I'm not sure how I would code it in unity. I have made my current code disable the hit entities gravity but would like to do it for all of them at the same time.</p>
  
  <pre><code>void OnCollisionEnter (Collision collisionInfo)
  {
      if (collisionInfo.collider.tag == "Obstacle")
      {
          collisionInfo.collider.attachedRigidbody.useGravity = false;
          GameManager.restartDelay = 4f;
          movement.enabled = false;
          FindObjectOfType&lt;GameManager&gt;().EndGame();
      }
  }
  </code></pre>
  
  <p>Sorry for any confusion.</p>