Mousehit / variable access question

Hi all, I have made a prefab called coalPlant.

coalPlant is essentially a Model, with a script called
BuildingStat attached to it, that holds a few variables such as name, cost, etc.

How do I go about getting access to those variables though If I am not using MonoBehavior?

For example if I was using monobehave it would be something like this in C#

BuildingStat hi = (BuildingStat)GameObject.Find("coalPlant").GetComponent(typeof(BuildingStat));

hi.buildingName = "NewName";

This would compile and work. Now my question is how do I do this if BuildingStat is not a type Monobehavior?

I still need access to those variables inside the script.

Any help would be great!

I think the sort answer is you can’t. If you try and drag a script that doesn’t inherit from Monobehavior onto a game object you’ll see you can’t attach it.

Is BuildingStat a class that you instantiate in another MonoBehaviour script (say you have a variable of that type and construct it in the Start method)? Or does it have static methods?