void OnTriggerExit(Collider trigger) { if (publicFunctions.ExitTrigger(trigger, myRadius, gameObject)) { target = null; aggro = false; } }