Button method before the next Update frame

Hello
I have an Update method in my playerController Script:

void Update()
{
    if (Input.touchCount > 0)
    {
        Touch touch = Input.GetTouch(0);
        if (touch.phase == TouchPhase.Began && pauseActive == false)
        {
            StartCoroutine(JumpUpDown(jumpDir));
            jumpDir *= -1;
        }
    }
}

So when I press the button on the screen, this method is called inside my UI class:

public void Pause()
{
    playerController.pauseActive = true;
}

however, Update is called first, so my coroutine starts.
How do I call Pause() first, before the Update() method, when I press the button?
*Mobile

hey , just use the same condition in update so it has also to wait a frame

 void Update()
 {
     if (Input.touchCount > 0 &&  playerController.pauseActive == true)

This worked

            if (!EventSystem.current.IsPointerOverGameObject(Input.GetTouch(0).fingerId))
            {
            }