} /// is entity currently dead? // attacks a target if they are in range of our attack range public virtual void Attack(LivingEntitiy target) { if (target.IsInRange(position, attackRange)) { target.TakeDamage(attackDmg * damageMultiplier); } }
public override void Attack(LivingEntitiy target) { // if the target is in range of our attack range, attack them if (target.IsInRange(position, attackRange)) { target.TakeDamage(attackDmg * Time.deltaTime * damageMultiplier); } }