My app is composed of:
- Main screen menu
- booklet 1 (11pages)
- booklet 2 (11pages)
- booklet 3 (11pages)
- Contact page
- "About this App" page
When you start my app, you are on the main menu, which include 3 main buttons.
On the right side of my screen (outside the view), I've got 3 panels (all three are Scroll view panels with children (booklet 1,2&3).
On the left side of my screen (outside the view), I'Ve got two panels (not sliding ones, Contact&About pages)
On click on one of the three buttons, I start few animations, one that make the main menu (buttons and center img) leave the screen to the left) and another one that bring the panel (that corresponds to the button pressed) from the right side of the screen to the main view.
Once the panel opened, the user can flick through the different pages of the panel (each page is a child, and you flick through as with the desktop view of the IOS devices).
On each buttons of my app I've added a script that detect the onclick and send the ID(int) of the button pressed to a Button manager script (that ive done) like that I've centralised all the buttons actions in one script.
On the opened panel page, when the Back button is pressed I need to animate the whole thing in the other way (bring back the menu and push out the sliding panel). But at that time I what to reset the children position, that way when the user goes back to that section of the app, well he starts again from the first page(child).
All the animations are done in unity, and I'm using static bools to interact between scripts.
Here is a webplayer version of the app I've done this week (related in all my posts & topics):
https://dl.dropbox.com/u/102815925/SwanseaUniApp/WebPlayer.html