protected virtual void Boom(ShipMasterClass ship) { kaboum?.Invoke(this, new ColDetectEventArgs() { ship = ship }); }
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); } }
private void DestroyShip(object sender, ColDetectEventArgs e) { ShipMasterClass deadShip = e.ship; deadShip = null; }