Please use code tags: Using code tags properly
How to report problems productively in the Unity3D forums:
Help us to help you.
You might want to start with some UI tutorials. Anytime a button is involved, the code becomes about 10% of the problem, and the UI setup is about 90% of the problem.