Hey there,
so i'm working on my UI with nGUI (for an iOS Game). For now, there are just some Buttons which can be tapped. I made my UI with the nGUI-Plugin, made the ImageButtons and attached the UIEventsToPlaymakerFSM Script (which i downloaded here in the forum, thanks for that
) to the Buttons. Works fine!
But, the thing is: I have a "Pause"-Button, when it is clicked, i want that another GameObject come up (this GameObject is another UI-Object, which has three Other Buttons).
My first approach was like this:
- the other Menuobject is deactivated
- when the PauseButton is tapped, it activates the MenuObject
- then i Use "Move Towards" like this:
I used the Move Towards-Action, but i didn't get the results i wanted to.
So, the Strucutre is like this:
The "SystemMenuPanel" is a Panel with a nGUI-Sprite and three Buttons.
This is the "Transform" of the UI
This is the "Transform" of the SystemMenuPanel
These are my MoveTowards-Settings
So as you see, i want the Object just to move 10 Units up. If i do so, the Menu floats to a certain point in the scene, with these coordinates:
And as you might tell, these are not the droid...the coordinates i'm looking for
I wanted it to go from Y: -314
To Y: -324.
So, what did i do wrong?