private void CheckLifeSteal(Ability ability, float damage)
 {
     if (ability.IsActive && ability.name.Contains("LifeSteal"))
     {
         healthContainer.Heal(null, damage * ability.AbilityValue);
     }
 }
示例#2
0
 private void ResetBoss()
 {
     healthContainer.Heal(gameObject, healthContainer.MaxHealth);
     elapsedHitTime    = 0f;
     elapsedDamageTime = 0f;
     damageReceived    = 0f;
     animationDuration = 0f;
     SetTargetPosition(spawnPosition, 0);
 }