I am getting a error message “.cs(16,78): error CS1002: ; expected” Can anyone tell me what’s wrong with it
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
This is 16–> transform.Translate(Input.GetAxis(“Horizontal”)*Time.deltaTime,0f,0f)
}
}
Like the error says, you’re missing a semicolon at the end of the line.
Also in the future, please format your code with code tags on the forums for easier reading:
Using code tags properly - Unity Forum
K, I found out what was wrong, but thanks any way.