public void OnTriggerEnter(Collider other) { if (other.gameObject == Support.sharedObjects.player) { patrol.Kill(); } }