Jump by touch Unity C#
<p>I writing game on Unity C#</p>

<p>This is simple runner.</p>

<p>I have Platformer2DUserControl Script.</p>

<p>Here is it</p>

<pre><code> using UnityEngine;
using UnitySampleAssets.CrossPlatformInput;

namespace UnitySampleAssets._2D

{

[RequireComponent(typeof (PlatformerCharacter2D))]
public class Platformer2DUserControl : MonoBehaviour
{
    private PlatformerCharacter2D character;
    private bool jump ;

    private void Awake()
    {
        character = GetComponent&lt;PlatformerCharacter2D&gt;();
    }

    private void Update()
    {
        if (Input.touchCount &gt; 0)
            character.Move(1, false, jump);

        if (!jump)
        // Read the jump input in Update so button presses aren't missed.
        jump = CrossPlatformInputManager.GetButtonDown("Jump");
    }

    private void FixedUpdate()
    {
        // Read the inputs.
        bool crouch = Input.GetKey(KeyCode.LeftControl);
       // float h = CrossPlatformInputManager.GetAxis("Horizontal");
        // Pass all parameters to the character control script.
        character.Move(1, false, jump);
        jump = false;
    }
}
}
</code></pre>

<p>I try to make  that player jumps when i touch screen on my phone.</p>

<p>But it don't jump.</p>

<p>What wrong in my code?</p>

<p>Thank's for help.</p>