i recently began a unity course “create with code” where the video explained to move a vechicle you must use this code. multiple errors occur when i use this code although it is word for word on the video can somebody please help find where i have gone wrong thanks.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
//moves the fucking tank
transform.Translate(Vector3.forward * Time.deltaTime * 20);
}
}