Hello every one !
I'm working on a game that has many .as files, one of the is called MainMenu.as where you select your current mission.
After finishing any mission, I want the game to take you back to that MainMenu.as so you can select another mission.
Thanks to Deft (really thanks !!) I'm working on a singleton pattern and actually works great. The thing is that I'm able to call back a function that is not the constructor of the class. So how can I do to call it? This is because I have the main code in the constructor.
If is not possible, I will change all the code so it goes to a function inside the MainMenu class instead of it's constructor.
Thanks so much guys !!
2 replies to this topic