Hello Someone suggested me a script I finally found out how to use the scipt but then I got an error… Heres the full error.
Assets/Scripts/PlayerController.cs(11,25): error CS1525 Unexpected symbol ‘(’
Also here the script
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : MonoBehaviour {
private Vector3 direction = Vector3.left;
private void Update()
{
if ( /* touch */ )
direction = -direction;
}
}
Also I was told to add an if statement and parenthesis by some other people but I didn’t know where to write it. Sorry for the