Hi
Building a Windows desktop application and getting a strange Nulll reference error on my dictionary.
I am declaring my dictionary as follows at the top of my Class
Dictionary<int, GameObject> myDictionary = new Dictionary<int, GameObject>();
Should I instead declare it and then instantiate it separately wihtin my Start method?
ie
Dictionary<int, GameObject> myDictionary
And then in Start()
myDictionary = new Dictionary<int, GameObject>();