the error says vector3.forward can not be assigned to (it is read only)
this is my script
using UnityEngine;
using System.Collections;
public class basicmove : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
transform.Translate (Vector3.forward = Input.GetAxis ("Vertical") * Time.deltaTime);
}
}
↧