How to know which half part of the touchscreen is pressed?


I’m working on a mobile game in unity 4.6. I want the player to able to click the left and right side of the screen. It works fine on my phone but I’m worried about phones with other resolutions.

This is what I got now: touch.position.x < 150 and touch.position.x >= 150.

Will this mabye work with a prectage?

Thanks for helping!

Replace 150 with Screen.width * 0.5.