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!