|
So in my base class, I have a variable that is :
Why is GS not available to be used in the sub classes? I get an error of :
But if I made functions inside of my base class, they are available to my sub-classes. Why is GS not?
(comments are locked)
|
|
The error you're getting seems more like GS is not getting set. Are you overriding Start in your subclass and not calling
(comments are locked)
|

Can I interest you in using the generic version of GetComponent? GS = (GameSystem)GameObject.Find("Manager").GetComponent (); It's significantly faster and less likely to promote runtime errors.