What’s up guys
So, this is really driving me nuts. I have a GameController class(C#), which has a few public properties. Two of which are Texts. And here’s the problem. although I set the values for these in the inspector window of the GameController object, the reference to it is always null.
Last night I only had one text object. the same happened, but after a few restarts and moving around the properties in the code(the order at the top of the source code) it just got fixed. Today I added a new Text, and now it’s the same all over again. But only for the newly added text and the previous one is working fine.
Any ideas?
Thanks
P.S: I’ve read almost 10000 NullReferenceException questions here and on the forum. But I’m doing everything by the book and still getting it.