Convert KeyCode Space to Android Touch Screen

Hello, i got a problem with the exportation of my 2D game to android phones. I can’t change or i don’t know how, the Input.GetKeyDown(KeyCode.Space) to Android Touch Screen. I want my character to jump (change his gravity) when you touch the screen. Can someone help me please ? I got a boolean, so i can’t press jump while i’m in the air, i need to touch the ground and be able to jump again.

My code :
#pragma strict

var ToucheSol:boolean=false;

function Start () {

}

function Update () {

if(Input.GetKeyDown(KeyCode.Space) && ToucheSol ==true){
GetComponent.().gravityScale *= -1;

}
if(Input.GetKeyDown(KeyCode.Space) && ToucheSol ==true){

}
}

function OnCollisionEnter2D(){
ToucheSol=true;

}

function OnCollisionExit2D(){
ToucheSol=false;

}

If you don’t need anything advanced checking Input.touchCount > 0 should be good enough.

Thanks for you answer, when i try to put Input.touchCount > 0 instead of Input.GetKeyDown(KeyCode.Space, the console says “Unexcepted token : &&” so what can i do ? my TouchSol means that when i touched the ground one time, i can touch the screen to jump, and i can’t jump when i don’t touch the upper ground…

if((Input.touchCount > 0) && ToucheSol ==true){

sorry for this late reply… i just tested it now… and man… thank you a lot it works. It’s awesome my baby game is on my android device ! Thank you again mate love you.