G’day gang,
Trying to make an RPG style game, have written script for gui button and would like a timer to start once button is clicked but it only counts one for every click of the button. Was thinking that
if (GUI.Button (new Rect (170,300,300,20), “go do job”))
{
Timer ++;
}
would kick off a timer once clicked, but not.
any suggestions to get a timer cranking ?? Tried creating a new function so that the button click would go to the function to start a timer but only induced the same count.