Mobile into PC

Hey someone recently helped me with a script but its hard to know if it works since its a mobile script.
So can someone please turn it into a pc script because isTouched is in it (Sorry if it sounds stupid I’m really new to unity)

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerController : MonoBehaviour
{

    private Vector3 direction = Vector3.left;
    private bool isTouched;

    private void Update()
    {
        if (isTouched)
            direction = -direction;
    }
}

Thank you for your time!

Hi,

There is nothing about this script that ties it down to mobile builds. If you’re looking to change the actual build from mobile to desktop, you can do so under your build settings. Other than that, all you have here is a script that is checking if isTouched is true, and then !reversing the value of direction.