7
« on: October 30, 2013, 10:57:30 AM »
Hello,
I'm new to NGUI and was wondering, what would be the best way to achieve this:
-I have a menu, let's call it "Upgrade" menu which can be called from various other menus in the project. From Main Menu, from Pause Menu, from LevelFinished Menu etc...
-This Upgrade Menu has a Back button which should lead to the Menu from which the Upgrade Menu was called.
Before NGUI, I'd simply check which menu was the previos one with a simple int variable (main menu = 1, pause menu = 2, game menu = 3 etc). I've tried this approach but I can't pass an argument with NGUI button message.
I have various solutions for this in mind but all of them seem a bit clunky and unnecessary complicated.
One more note, I'm a self-taught UnityScript scripter. My main expertise is 3D graphics and animation but I had to learn scripting since I couldn't find anyone in my area willing to cooperate. I have absolutely no formal background in programming.
Cheers