Hi, I am new at coding, and I made this code
using UnityEngine;
using System.Collections;
public class MovementScript : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if(Input.GetKey (KeyCode.UpArrow))
transform.Translate Vector3(0, 0, 1)* Time.deltaTime;
}
}
the point of the code was to make the cube the script is attached to, to move when I press the up arrow key, but after so many errors this is the last one
Assets/Scripts/Script.cs(14,52): error CS1525: Unexpected symbol (', expecting
)‘, ,',
;’, [', or
=’
I dont understand why there are so many errors, what does this one mean