public void Update(World world, Particles particles)
{
for (int i = 0; i < _gameObjects.Count; i++)
{
var obj = _gameObjects[i];
obj.Update(world, particles);
if (obj.IsDestroyed)
{
obj.ResetGameObject();
Game.Objects.ReleaseObject(obj);
_gameObjects[i] = null;
}
}
_gameObjects.RemoveAll(o => o == null);
}