public void Hit(Bullet bullet)
        {
            if (bullet == null)
                throw new ArgumentNullException("bullet");

            Health.CurrentHealth -= bullet.HitPower;
        }
 private void OnBulletFired(Bullet bullet)
 {
     if (BulletFired != null)
         BulletFired(this,new BulletFireEventArgs(bullet));
 }
 public void Fire()
 {
     var bullet = new Bullet(this, FirePointPosition, FirePointForward);
     OnBulletFired(bullet);
 }
 public BulletFireEventArgs(Bullet bullet)
 {
     Bullet = bullet;
 }