- Home /
Error in code I cannot fix
I'm a beginner, and would like some help from an experienced coder. It says there is a Parsing Error, and "Unexpected symbol '}'". Can anybody tell me how to fix this?
using UnityEngine;
using System.Collections;
public class FirstPersonController : MonoBehaviour {
public float movementspeed = 5.0f;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
float forwardspeed = Input.GetAxis ("Vertical") * movementspeed;
float sidespeed = Input.GetAxis ("Horizontal") * movementspeed;
Vector3 speed = new Vector3( sidespeed, 0, forwardspeed );
CharacterController cc = GetComponent<CharacterController>();
cc.SimpleMove( speed )
}
}
Comment
Best Answer
Answer by meat5000 · Oct 19, 2013 at 10:42 AM
cc.SimpleMove( speed )
Needs a ; at the end.
A small oversight
Your answer
Follow this Question
Related Questions
Can i make a first person shooter MMO with unity? 2 Answers
First Person Shooter Prefab not working 0 Answers
How do I make my fps character grab objects? 4 Answers
Unity Crashes On FirstPersonController.GetComponent!!! 1 Answer
CHARACTER MOVEMENT?! 1 Answer