public void DeathCheck() { if (Plane1.Hp == 0) { this.Controls.Remove(Attack1); Attack1.Dispose(); } if (Plane2.Hp == 0) { this.Controls.Remove(button4); button4.Dispose(); pictureBox5.Visible = true; Plane1.Target = Tank2; } if (Tank1.Hp == 0) { this.Controls.Remove(Attack2); Attack2.Dispose(); } if (Magic1.Hp == 0) { this.Controls.Remove(Attack3); Attack3.Dispose(); } if (Ship1.Hp == 0) { this.Controls.Remove(Attack4); Attack4.Dispose(); } if (Tank2.Hp == 0) { this.Controls.Remove(button3); button3.Dispose(); pictureBox6.Visible = true; Plane1.Target = Magic2; } if (Magic2.Hp == 0) { this.Controls.Remove(button2); button2.Dispose(); pictureBox7.Visible = true; Plane1.Target = Ship2; } if (Ship2.Hp == 0) { this.Controls.Remove(button1); button1.Dispose(); pictureBox8.Visible = true; } }