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