Is a type but is used like a variable

Old Guy trying to relearn coding use to know COBOL. =) Just trying to keep my brain from going to mush. So I decided to relearn how to code. =) The error is below. I know you are suppose to show it but I don’t know how to get it in like you guys do so here is a picture. =)

(22,9): error CS0118: 'AutobotStats' is a type but is used like a variable

// moderator here: you may want to also share you code as text. It helps others run or test your code :)

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;

public class BotStats: MonoBehaviour
{

private AutobotStats[] autobotStats;
public TextMeshProUGUI[] nameText, hpText, strengthText, intelligenceText, speedText, enduranceText,
rankText, courageText, firepowerText, skillText, maxEXPText, currentXPText, currentLevelText;
public Slider[] xpSlider;
public Image[] characterImage;
public GameObject[] characterPanel;



public void UpdateStats()
{
    AutobotStats = GameManager.instance.GetAutobotStats();
    UpdateStats();
}





// Start is called before the first frame update
void Start()
{
    
}

// Update is called once per frame
void Update()
{
    
}

}

You need to configure your IDE before progressing. Without autocomplete and error highlighting you’re working in the dark.

After that, AutobotStats looks like a Type, GetAudiobotStats presumably returns an array of that type, you should be assigning it to your array, autobotStats.