I keep getting this error no matter what I do and I don’t know what it means.
using UnityEngine;
using System.Collections;
public class playercontrole : MonoBehaviour
{
public float speed;
}
void FixedUpdate ()
float moveHorizontal = Input.GetAxis(“Horizontal”);
float moveVertical = Input.GetAxis(“Vertical”);
Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);
Rigidbody.velocity = movement * speed * Time.deltaTime;
PGJ1
2
You´re missing a starting { after your “void FixedUpdate()”.
There’s a few errors here actually…
Use tabs to help see where the open { and closed } are. Remember that every open { needs a matching } at the end of it’s code.
using UnityEngine;
using System.Collections;
public class playercontrole : MonoBehaviour
{
public float speed;
void FixedUpdate ()
{
float moveHorizontal = Input.GetAxis("Horizontal");
float moveVertical = Input.GetAxis("Vertical");
Vector3 movement = new Vector3(moveHorizontal, 0.0f, moveVertical);
Rigidbody.velocity = movement * speed * Time.deltaTime;
}
}