Hey,
I was wondering, when I run the game without the Game Session game object in the scene the game runs totally fine but I keep getting this exception NullReferenceException. If I add the Game Session game object to all the scenes (prefab) everything is ok.
- What’s the reason behind getting this exception when Game Session game object is missing from the scene?
- How is that possible that without the Game Session game object the game and score counting runs fine? I noticed that when I click play it generates DontDestroyOnLoad object, but how Unity knows to assign to the scene this object from the GameSession.cs script if the Game Session game object does not exist in the scene, how does Uniy / C# finds the GameSession type?
TIA