Detecting touches in a Rect on iOS

I’m new to Unity and I have a noob question here.
How do I detect touches in a Rect in iOS? I need a code snippet in C#. For now I’ve gotten as far as detecting mousePosition in a rect and it works just fine on iPhone but it does not get me close to creating a touch button with a texture, just like as I would want. Here’s my code so far:

	void Update () {
		Rect rect = new Rect(10, 10, 120, 120);
    if (rect.Contains(Input.mousePosition))
			print("Inside Left");

You are looking for Input.GetTouch(). You need to check to see if any fingers are down, then you can get the position from the Touch data structure. Something like:

if (Input.touchCount > 0)
   if (rect.Contains(Input.GetTouch().position))
     //Do something

Note you are getting back screen coordinates.

Try This :

Replace if (rect.Contains(Input.mousePosition))


if (rect.Contains(Input.mousePosition(0)))