public void Update(GameTime gameTime) { for (int i = strandeds.Count - 1; i >= 0; i--) { strandeds[i].Update(gameTime); if (respawnManager.OutOfBounds(strandeds[i].position)) { strandeds.RemoveAt(i); } } TopUpStrandeds(); }
public void Update(GameTime gameTime) { for (int i = asteroids.Count - 1; i >= 0; i--) { asteroids[i].Update(gameTime); if (respawnManager.OutOfBounds(asteroids[i].position)) { RemoveAsteroids(i); } } TopUpAsteroids(); }