when quit is opted i want a dialog-box to appear saying "are you sure you wanna quit. yes/no" if no is chosen then i want the game to quit other wise i want the game to resume. how do i program it. i do not know much of programming.
Go to gameobject => create other => 3dText. Create the text you want and got to component=>physics=>boxcollider. Make sure you text is not inside another object as it will show but you won't be able to touch it. Then assign that script below to the GUI object and you are good to go.
Now you need to start tweaking the variable to place properly and do exactly what you want.
Hope that helps
answered Jan 30 '12 at 08:32 PM