Question by
Zeeray03 · Aug 19, 2017 at 04:25 AM ·
scripting problem
how to fix Error CS1525: Unexpected symbol `)' (CS1525) (Assembly-CSharp)
i have followed the tutorial exactly and i have tried most things and I'm curious if the is any thing i missed that would fix this: "Error CS1525: Unexpected symbol `)' (CS1525) (Assembly-CSharp)"
Heres my work: using UnityEngine; using System.Collections;
public class PlayerController : MonoBehaviour {
public float speed;
private Rigidbody rb;
void Start ()
{
rb = GetComponent<Rigidbody> ();
}
void FixedUpdate ()
{
float moveHorizontal = Input.GetAxis ("Horizontal");
float moveVertical = Input.GetAxis ("Vertical");
Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical);
rb.AddForce (movement * speed);
}
}
Comment
Your answer