void OnTriggerExit(Collider other) { Debug.Log("Trap Deactivated"); if (other.CompareTag("Player") || other.CompareTag("Monster")) { trap.Deactivate(); } }