public override void AttackUnit(Damaged target) { if (Vector2.Distance(target.transform.position, transform.position) <= range && Time.time >= timerDelay) { target.Hit(strong, damageType); timerDelay = Time.time + delay; } }
public override void AttackUnit(Damaged target) { if (Vector2.Distance(target.transform.position, transform.position) <= range && Time.time >= timerDelay) { target.Hit(strong, damageType); timerDelay = Time.time + delay; } }