public void DealDamage(IHealth target, float amount) { if (audioManager) { audioManager.PlaySFX("Hit"); } target.DeductHealth(amount); }
public virtual void DealDamage(IHealth enemy, float amount) { if (audioManager) { audioManager.PlaySFX("Hit"); } enemy.DeductHealth(amount); }
public override void DealDamage(IHealth enemy, float amount) { //Base on Missing HP float newAmount = (this.enemy.maxHealth - this.enemy.Health) * amount; //Clamp to Minimum Damage newAmount = Mathf.Clamp(newAmount, MinimumDamage, newAmount); enemy.DeductHealth(newAmount); if (audioManager) { audioManager.PlaySFX("Hit_BackStab"); } }
public void DealDamage(IHealth target, float amount) { target.DeductHealth(amount); }
public void DealDamage(IHealth target, float amount) { target.DeductHealth(amount); OnDealDamage.Invoke(target, amount); }