Пример #1
0
 protected virtual void Boom(ShipMasterClass ship)
 {
     kaboum?.Invoke(this, new ColDetectEventArgs()
     {
         ship = ship
     });
 }
Пример #2
0
 public ColisionDetector(ShipMasterClass ufoBonus, ShipMasterClass[,] ufo, Ship player, Bullet playerBullet, Bullet enemysBullet)
 {
     this.player = player;
     allEnemyShip.Add(ufoBonus);
     foreach (ShipMasterClass ship in ufo)
     {
         allEnemyShip.Add(ship);
     }
 }
Пример #3
0
        private void DestroyShip(object sender, ColDetectEventArgs e)
        {
            ShipMasterClass deadShip = e.ship;

            deadShip = null;
        }