Question by
DiamondDerp · Sep 14, 2015 at 09:05 PM ·
error message
how do i fix error1519
help i dont know what to do
public class PlayerScript : MonoBehaviour {
public float moveSpeed = 5;
CharacterController
void Start()
{
}
void Update ()
{
GetComponent<CharacterController>().Move(new Vector3(Input.GetAxis("Horizontal") * moveSpeed, 0, Input.GetAxis("Vertical") * moveSpeed * Time.deltaTime));
}
}
Comment
Answer by xyz567 · Sep 14, 2015 at 09:19 PM
Error 1519 means there is an invalid token in class, struct, or interface member declaration. Check here for more details.
In your case its cased by the line which just says "CharacterController" above the start method. You need to name this variable and end the line with a semi colon.