I have added sound to the project, and I have created button functionality whereby the user can toggle sound on and off, and also exit the Unity application to go back to the home screen. I think sound makes the project more interactive and immersive. The button functionality involved more JavaScript code, which the Unity Community is very useful for. With a lot of this kind of functionality, it's considered quite basic so a lot of people have already done it, and it's not too hard to find examples online.
This one was useful for the on/off button:
http://answers.unity3d.com/questions/303807/music-onoff-switch.html
The exit button really only required the use of the Application.LoadLevel command.
No comments:
Post a Comment