private void OnTriggerExit(Collider other) { if (other.gameObject == target) { Debug.Log("Trigger Detector"); brain.OnHuntTargetLeft(other.gameObject); target = null; } }