Hello,
I am following the basic “Nightmare” tutorial:
http://willgoldstone.com/utd2014.pdf
And this is my code:
public float speed = 6f;
Vector3 movement;
Animator anim;
Rigidbody playerRigidbody;
int floorMask;
float camRayLength = 100f;
void Awake ()
{
floorMask = LayerMask.GetMask("Floor")
anim = GetComponent <Animator> ();
playerRigidbody = GetComponent <Rigidbody> ();
}
void FixedUpdate ()
{
float h = Input.GetAxisRaw("Horizontal");
float v = Input.GetAxisRaw("Vertical");
Move(h,v);
Turning();
Animating(h,v);
{
void Move (float h, float v)
{
movement.Set(h, 0f, v)
movement = movement.normalized * speed * Time.deltaTime;
playerRigidbody.MovePosition (transform.position + movement);
}
void Turning()
{
Ray camRay = Camera.main.ScreenPointToRay (Input.mousePosition)
RaycastHit floorHit;
if(Physics.Raycast(camRay, out flootHit, camRayLength, floorMask))
{
Vector3 playerToMouse = floorHit.point - transform.position;
playerToMouse.y = 0f;
Quaternion.newRotation = Quaternion.LookRotation (playerToMouse);
playerRigidbody.MoveRotation(newRotation);
{
}
void Animating(float h, float v)
{
bool walking = h != 0f || v != 0f;
Animator.SetBool ("IsWalking", walking);
}
}
And I got this errors:

You really want to spend some time understanding why each symbol exists before you try too much more coding. Also start with a simpler tutorial until you have the basics down.
– KiwasiWelcome to the most common error you'll have while still learning a language. Missing terminators (semi colons and braces in this case) will make you sleep uneasy for the foreseeable future. Just wait till you start getting off-by-one errors.
– Habitablaba