void OnTriggerExit2D(Collider2D col) { if (col.CompareTag("Player") && !room.cleared) { room.Enter(); doors.SetActive(true); } }