title: How do you destroy a unity GameObject and remove from a list at the same time?
body: <p>I have a list of game objects, this keeps track of the monsters i have in my game. when the monster is killed, it will be in position 0 of the list. i want to destroy the object in the scene and remove it from the list.</p>
  <p>My question is, does the command: list.RemoveAt(0); call the object to get destroyed or does it leave it existing as some sort of memory leak?</p>
  <p>I have tried removing the monster, destroying then removing, saving the monster to a var then removing then destroying and all of them cause bugs. If i knew how the command works, i could narrow down the issue to that or something else in my code.</p>