If you are using Text mesh pro component for your UI text then you need to create this type of reference TextMeshProUGUI
That means instead of having this
public List<TMP_Text> oreCountTexts;
You should change it to this
public List<TextMeshProUGUI> oreCountTexts;
You can read more about it here: TextMesh Pro Documentation