So this is a tiny bit embarrassing, can someone tell me why I can’t do this?
void Update () {
Vector3 myVector = new Vector3 (Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical"));
transform.Translate(myVector) * speed;
transform.TransformDirection (myVector);
}
I get the error: ‘Only assignment, call, increment, decrement, and new object expressions can be used as a statement.’