Beispiel #1
0
 public void AcceptDamage(ProjectileComponent projectile)
 {
     if (partyMember != null && !projectile.friendly)
     {
         if (partyMember.Damage(projectile.damage))
         {
             Destroy(projectile.gameObject);
         }
     }
     else if (worldItem != null && projectile.friendly)
     {
         if (worldItem.Damage(projectile.damage))
         {
             Destroy(projectile.gameObject);
         }
     }
 }