コード例 #1
0
        private void RemoveCannon(int i)
        {
            Canon cannon = ClosestCannon(Enemies[i]);

            TheForm.GetControls().Remove(cannon);
            Cannons.Remove(cannon);
            TheForm.GetControls().Remove(Enemies[i]);
            Enemies.RemoveAt(i);

            SoundCollection.PlayerCannonCrush.Play();
            ShakeForm();
        }