protected void AIReactToShot() { foreach (Collider other in Physics.OverlapSphere(transform.position, 20f)) { if (other.tag == "Unit") { AIControl ai = other.GetComponent <AIControl>(); if (ai.target == null) { ai.TookDamage(this.transform.position - other.transform.position); } } } }