None of my scripts work.

I’m doing the Roll-a-Ball tutorial for a class I’m taking. A couple days ago, all of my scripts worked fine. I turn it on tonight, and none of them work. I haven’t changed a thing, and I have no idea what happened. Any help?

Player movement script

using UnityEngine;
    using System.Collections;

public class PlayerController : MonoBehaviour
{
    public float speed;

    void Update ()
    {

    }

    void FixedUpdate ()
    {
        float moveHorizontal = Input.GetAxis ("Horizontal");
        float moveVertical = Input.GetAxis ("Vertical");

        Vector3 movement = new Vector3 (moveHorizontal, 0.0f, moveVertical);

        rigidbody.AddForce (movement * speed * Time.deltaTime);
    }
}

Camera follows player

using UnityEngine;
using System.Collections;

public class CameraControl : MonoBehaviour
{
    public GameObject player;
    private Vector3 offset;
    // Use this for initialization
    void Start ()
    {
        offset = transform.position;   
    }
   
    // Update is called once per frame
    void lateUpdate () {
        transform.position = player.transform.position + offset;
    }
}

Script to make items rotate

using UnityEngine;
using System.Collections;

public class rotation : MonoBehaviour {

    // Update is called once per frame
    void Update () {
        transform.Rotate (new Vector3 (15, 30, 45) * Time.deltaTime);
    }
}

So when you say “None of my scripts work”, what do you mean? You’re getting errors? If so, what are the errors?

No, that’s just it. Nothing seems to be wrong. Unity and MonoDevelop tell me everything checks out fine. But when I try to test the game, though, nothing happens. The arrow keys don’t move the player, the items don’t rotate like they’re supposed to, nothing.

Maybe it helps to rebuild the whole project once again. Close Unity and delete the Library folder. That forces Unity to reimport all assets and compile the scripts once again.

I assume the scripts are all attached to the correct gameobjects?

Are the public variables’ values set in the inspector?
In the first script, you have a ‘speed’ variable, but if it’s 0 I’m guessing your character won’t move.