Raycast Touch Android not working JS

Hey, I’m trying to make 2D game controls for Android. So I searched around the internet and found some pieces of code. I edited some of them and now I have this. The mouse clicks work perfectly. But the touch input on Android doesn’t. Unity knows it’s an Android device if I build it. The touch is just not working. Did I do something wrong? Is my device too old/broken? I’m using a HTC Desire HD.

#pragma strict

function Update(){
    if(Application.platform == RuntimePlatform.Android){
        var tapCount = Input.touchCount;
		for ( var i = 0 ; i < tapCount ; i++ ) {
     		var touch = Input.GetTouch(i);
      		if(touch.phase == TouchPhase.Began){
    else if(Application.platform == RuntimePlatform.WindowsEditor){
        if(Input.GetMouseButtonDown(0)) {
function checkTouch(pos){
    var wp : Vector3 = Camera.main.ScreenToWorldPoint(pos);
    var touchPos : Vector2 = new Vector2(wp.x, wp.y);
    var hit = Physics2D.OverlapPoint(touchPos);
        if(Application.platform == RuntimePlatform.WindowsEditor){

input.getmouseButton would work on all platforms… itd work on android…

You are missing your z Depth parameter on your ScreenToWorldPoint.

You are passing your checkTouch function a Vector2 only.