if(Input.touchCount==0) DDMove.LR=0; foreach(Touch touch in Input.touches) { if(touch.position.x>Screen.width/2.0) DDMove.LR=1f; else DDMove.LR=-1f; if(Input.touchCount>1) { DDMove.Jump=true; } }