button script

HI im a new user, i need a little script to push a button… someone can help me? thanx :smile:

There is a Button script in the Unify Wiki Script Archive.

thank you so mutch for your reply, i tried to copy and paste the button script you advised me but when i start my application Unity crash. :frowning:

Unity should not crash because of a script… You probably just got a null reference exception. (Which sometimes causes Mac OS X to think Unity crashed and genereates a crash report.) Did you attach textures to the three texture variables?

In any case what errors were reported?