title: Loop through a list of Vector3's and see if it is another vector3 and remove it from the list
body: <p>so I have a list of Vector3's and I would like to loop through it and see if it equals another Vector3.<br />
  I've tried to do this but it won't work i get an error that says <br />
  <em>Index was out of range. Must be non-negative and less than the size of the collection.</em></p>
  <p>Here is my code:</p>
  <pre><code>int n = GameManager.instance.blocks.Count;
                  while (n &gt; 1) 
                  {
                      if (GameManager.instance.blocks[n] == new Vector3(Mathf.RoundToInt(this.transform.position.x), Mathf.RoundToInt(this.transform.position.y), 0))
                      {
                          GameManager.instance.blocks.Remove(new Vector3(Mathf.RoundToInt(this.transform.position.x), Mathf.RoundToInt(this.transform.position.y), 0));
                      }
                      n--;
                  }
  </code></pre>
  <p>But i get the error previously stated, what would I change here?</p>
  <p>Thanks</p>