Help with overlapcircleall in 2d

so from what ive tryed
Collider2D[ ] oreList2 = Physics2D.OverlapCircleAll(transform.position, attackRange, enemyLayers);
creates an array populated with what it hits… however i cannot seem to access that array to set target to item in array… it just doesnt see the array alive. or there…

any thoughts on how to make a targeting system tab style to work on a button for mobile that auto populates the list of targets within say 6meters?
]

 protected List<Collider2D> oreList = new List<Collider2D> { };
    protected float timetoScanForTargetsLeft;
    protected float startTimeToScanForTargets = 5;
    void Update()
    {
        MoveInput();
        ScanForTargets();
    }
    private void ScanForTargets()
    {
        if (timetoScanForTargetsLeft <= 0)
        {
            Collider2D[] oreList = Physics2D.OverlapCircleAll(transform.position, attackRange, enemyLayers);
            timetoScanForTargetsLeft = startTimeToScanForTargets;
        }
        else
        {
            timetoScanForTargetsLeft -= Time.deltaTime;
        
        }
    }
public void TargetSet()
    {
        Debug.Log(oreList[0]);
        if (setTarget == null)
        {
            setTarget = oreList[0];
            indexing++;
            targetCrossHair.transform.position = setTarget.transform.position;
        }
        else
        {
            if (indexing > oreList.Count)
            {
                indexing = 0;
                setTarget = oreList[0];
                targetCrossHair.transform.position = setTarget.transform.position;
            }
            else
            {
                indexing++;
                setTarget = oreList[indexing];
                targetCrossHair.transform.position = setTarget.transform.position;
            }
        }
    }

You’re creating a local variable called oreList which is an Array, but then using your member variable also called oreList which is a List inside the TargetSet() which is surely still empty.