예제 #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;
        }