예제 #1
0
 public void AddBullet(Bullet pBullet)
 {
     if (pBullet != null)
     {
         m_Bullets.Add(pBullet);
     }
 }
예제 #2
0
 public void HitByBullet(Bullet pBullet)
 {
     handleDeath();
 }
예제 #3
0
 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;
 }