Unity button onclick function script callback gameobject notes:
For sliders and dropdowns and other value-returning UI elements:
If you post a code snippet, ALWAYS USE CODE TAGS:
How to use code tags: Using code tags properly
You may edit your post above.