Question about time a button is pressed

Hi there,

i just want to change a var on pressing a button on the screen for several second.
I do not know how to do this.
can somebody help me there ?

Thanks
Marc

Check out GUI.RepeatButton in the scripting tutorial: Unity - Scripting API: GUI.RepeatButton