I'm using OnClick for all the buttons, this is showing/hiding panels, but this should wait for an animation before changing.
Until now, I only have one panel working, this panel starts with the animation, but when I want to came back to the previous panel it shows the other panel, but this other starts with a different animation, I should create a script and create conditions for each kind of animation?
- MainMenu
-- SubMenu1
-- SubMenu2
So when I start in the MainMenu it has one animation, and then click in other submenu and plays SubMenu1 animation
List of Animations:
1) MainMenu Starts
2) SubMenu1 Starts
3) SubMenu2 Starts
or
1) MainMenu Starts
2) MainMenu Goes SubMenu1
3) MainMenu Goes SubMenu2
What should I used?