How to use onClick () Function for UI?

I am trying to create a simple UI for my start menu for my game. I want three buttons total. ‘Play’, ‘Options/Settings’, ‘Quit’. I added the button and the source image for the ‘Play’ button, now it has a function called onClick (). How do I use this to say when this button gets clicked it loads a certain scene? I am not very experienced in C#, so please be considerate.

If you’re not familiar at all with UI Buttons you should check out this Unity Tutorial on the subject. Also, this post might be helpful.

And for loading scenes I’d suggest using Application.LoadLevel

@dhore Okay now I have one last question. The settings panel that you can choose in Player Settings when building the game, is it possible to show that panel when a use presses the Options button?