public void AddBullet(Bullet pBullet) { if (pBullet != null) { m_Bullets.Add(pBullet); } }
public void HitByBullet(Bullet pBullet) { handleDeath(); }
public bool CollidesWith(Bullet pBullet) { if ((m_Sprite.Position - pBullet.Position).Length() < pBullet.Radius + radius) { m_bugDeathSound.Play(); HeartAttack.theGameInstance.bugsKilled++; return true; } return false; }