Hey guys,
I am working on a level select system and I have most of it working. There is just one problem at this point. When I go back from my levelSelect menu of world 2 to my worldSelect menu the panel is back on world 1. What I would like is that when someone for example returns from world 2 to the worldSelect menu they are looking at the button to go to world 2 again.
I tried to get the localPosition of the panel and save that to a variable in a singleton object. so when I would return to the worldSelect menu I could take that value and assign that (in a start function on the panel) to the localPosition of the panel. This did not work unfortunately. What happened was that when I now enter world 2 and return, it slides back to the world 1 button. Then, when I slide back to the world 2 button, I am not able anymore to slide back to the world 1 button.
Is there someone that knows how to solve this problem.
Thanks in advance,
Max Uijlings