InputManager vs iPhone/Android

Hi,

I’ve got a question I think it would be resolved, but I can´t find it. I’m developing a 2D Platform Game and I don’t know how to make iPhone or Android do jumping (pressing left half of the screen) as Mac or PC do when I press Left Control (InputManager).
I’m using the standard CharacterMotor.js in Unity.

Could somebody help me?

Ty. ^^

Read about Input.GetTouch()!

Example, if you want it to work only when one finger is touching the screen:

if(Input.touchCount==1)
{
    if(Input.GetTouch(0).position.x<Screen.width/2 && Input.GetTouch(0).phase==TouchPhase.Began)
    {
           Jump();
    }
}

Ok, thanks.
The real problem was that “somebody” changes CharacterController.js…

I’m using Input.GetTouch for shooting and it works fine… :wink: