Hello
I have been trying to access a gameobject called LevelManager which contains a script called LevelManager which has an enum I want to use to change scenes. This gameobject is a child of an empty gameobject called Persistant Objects which gets instantiated at run time from a script that also sets the instantiated objects as DontDestroyOnLoad.
Basically I have a scene called Splash Screen which is the first scene you see when you hit Play.
There is a button which you click to play the game.
This button has an attached script with a function called LoadLevelOne()
Every time I click on the Play Game button I get the error Object Reference not set to an instance of an object. I want to do is load the Level One scene but am having great difficulty trying to access Level Manager. Have tried so many different ways to try an access this but have had no success.
Cant I access gameobjects that are under DontDestroyOnLoad?