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!