Android touch input

I want a simple touch input on the android, just when i touch the screen(anywhere) that something happens, anyone got any idea on how to do this?

void Update() {
if (Input.touchCount == 1) {
// Do something

that should get you started

i have unity 3.4 with license full!
i build it .apk it opend on my phone but doesnt function,
becz i neead a script for touch.
my script is whenever i click with the mouse the box disappears.
how can i change the mouse click to finger touch?
this is my script

function OnMouseDown(){

//if cube’s texture isn’t locked texture then it loads level number which we gave it in editor

if(renderer.material.mainTexture != lock){




Please Help!