Пример #1
0
 /// <summary>
 /// implementation of interface IBulletDetector and called from BulletDetetor when a bullet detect a collision
 /// When a collision is detect, calling the factory bullet to destroy the bullet
 /// </summary>
 /// <param name="bullet">bullet to be destroyed ( will be bullet == this )</param>
 public void BulletCollisionDetected(Bullet bullet)
 {
     // calling the factory bullet to destroy the bullet
     FactoryBullet.DestroyBullet(bullet);
 }