Ejemplo n.º 1
0
 void OnTakeDamage(LSProjectile projectile)
 {
     if (IsShielding)
     {
         TakeRawDamage(projectile.CheckExclusiveDamage(Agent.Tag));
         projectile.Damage = 0;
     }
     timeUntilRegeneration = RegenerationDelay;
 }
Ejemplo n.º 2
0
 public void TakeProjectile(LSProjectile projectile)
 {
     if (Agent.IsActive && HealthAmount >= 0) {
         if (OnTakeProjectile .IsNotNull ())
         {
             OnTakeProjectile (projectile);
         }
         TakeRawDamage (projectile.CheckExclusiveDamage (Agent.Tag));
     }
 }
Ejemplo n.º 3
0
 public void TakeProjectile(LSProjectile projectile)
 {
     if (Agent.IsActive && HealthAmount >= 0)
     {
         if (OnTakeProjectile.IsNotNull())
         {
             OnTakeProjectile(projectile);
         }
         TakeDamage(projectile.CheckExclusiveDamage(Agent.Tag));
     }
 }
Ejemplo n.º 4
0
 void OnTakeDamage(LSProjectile projectile)
 {
     if (IsShielding) {
         TakeRawDamage ( projectile.CheckExclusiveDamage (Agent.Tag));
         projectile.Damage = 0;
     }
     timeUntilRegeneration = RegenerationDelay;
 }