public void Update(GameTime gameTime) { for (int i = 0; i < bullets.Count; i++) { bullets[i].Update(gameTime); if (bullets[i].Destroy) { particleManager.AddRectangleDestructionParticles(Color.DarkBlue, bullets[i].location, this.collideWidth, collideWidth, 1, 1); actorManager.RemoveMapObject(bullets[i]); bullets.RemoveAt(i); } } }
void AddDestructionParticles() { particleManager.AddRectangleDestructionParticles(new Color(239, 228, 176), this.location, this.collideWidth, this.collideHeight, 2, 2); }