How to fix the script error movement in unity?

Learn to create 2D platformers. I found this script, trying to tie to the character - just 8 errors. Somebody can fix it?:

using UnityEngine;
using System.Collections;

public class characterController : MonoBehaviour {
 public float maxSpeed = 10f;
 public float jumpForce = 700f;
 bool facingRight = true;
 bool grounded = false;
 public Transform groundCheck;
 public float groundRadius = 0.2 f;
 public LayerMask whatIsGround;

 public float move;

 // Use this for initialization
 void Start () {

}

 // Update is called once per frame
 void FixedUpdate () {


 grounded = Physics2D.OverlapCircle (groundCheck.position groundRadius, whatIsGround);

 move = Input.GetAxis ("Horizontal");

}

 void Update(){
 if (grounded && (Input.GetKeyDown (KeyCode.W)||Input.GetKeyDown (KeyCode.UpArrow))) {

 rigidbody2D.AddForce (new Vector2(0f,jumpForce));
}
 rigidbody2D.velocity = new Vector2 (move * maxSpeed, rigidbody2D.velocity.y);

 if (move > 0 && !facingRight)
 Flip ();
 else if (move < 0 && facingRight)
 Flip ();



 if (Input.GetKey(KeyCode.Escape))
{
Application.Quit();
}

 if (Input.GetKey(KeyCode.R))
{
Application.LoadLevel(Application.loadedLevel);
}


}

 void Flip(){
 facingRight = !facingRight;
 Vector3 theScale = transform.localScale;
 theScale.x *= -1;
 transform.localScale = theScale;
 } 
}
March 19th 20 at 09:13
1 answer
March 19th 20 at 09:15
can. but it is necessary that you did. in order to learn.

arrangement and question - code to execute as code.) no wonder that here the markup did.

and nobody is eager to open the project and paste your code there, so at least you error messages from the console would put (and not a screenshot. and copying each text. and saving the order, since the first error could simply "pull" for a rest)

and even if you yourself read the description of the error and a little googling and some basics of programming learn - the issue will disappear.
you more web coders not seen. There are people at least trying - Tessie.Macejkovic commented on March 19th 20 at 09:18

Find more questions by tags Unity Game EngineDevelopment of gamesC#