I have a simple GUI with 4 navigation buttons (up, down, left, right).
Rather than recreate buttons on each scene, I'd like to have the GUI buttons stay on each scene, so would put it in a Don'tDestroyonLoad for the GUI.
How then would I change which scene the buttons refer to on each scene?
So for instance, on scene 1, up would go to scene 2, but on scene 2, up would go to scene 6.
I've tried setting global variables for Up, down, left, right, and then changing the variable on each scene by setting the global with a local, but I can't seem to get that working.
Is it possible to have something persist, while the variable it refers to change?