My game is structured like this:
- The player enters the level select screen and picks a level
- The player plays this level, beats it, and returns to the level select screen
When first entering my level select screen, there is a "GameMaster" game object that is responsible for actually changing levels. This object has been marked as "don't destroy on load," but the problem is that my UI buttons only detect it at the very beginning of my game because I manually dragged this object onto the buttons. After beating the level and returning to the level select screen my buttons don't work, as it says the "GameMaster" object is missing. How do I fix this? Is there a way to set the GameMaster onto the buttons every time I return to this scene? I very much appreciate any help you may be able to give me.
↧