Answer by Jessespike · Jan 15, 2016 at 09:23 PM
Write a function and set up the button to call it with OnClick Event.
https://unity3d.com/learn/tutorials/modules/beginner/ui/ui-button?playlist=17111
Answer by OgiJr · Jan 16, 2016 at 08:32 AM
I created the function added it to the gameObject but it still doesn't appear in the UI functions I putted the gameObject that hold's the script in the UI button and the script name appears but the int variable's name doesn't.
for-tut.png
(29.0 kB)
second.png
(17.4 kB)