The referenced script on this Behaviour is missing!

The referenced script on this Behaviour is missing! Can anyone help me?
The code is:

using UnityEngine;
using System.Collections;
public class Orbit : MonoBehaviour {
public float turnSpeed = 4.0f;
public Transform player;
private Vector3 offset;
void Start () {
offset = new Vector3(player.position.x, player.position.y + 8.0f, player.position.z + 7.0f);
}
void LateUpdate()
{
offset = Quaternion.AngleAxis (Input.GetAxis(“Mouse X”) * turnSpeed, Vector3.up) * offset;
transform.position = player.position + offset;
transform.LookAt(player.position);
}
}

1 Like

There is a missing script on one of your components, check in the inspector… Also please use code tags when posting code, or click the insert->code buttons and paste your code in there…

You must have deleted a code that was also on an object.

I’m currently confronted to this message (The referenced script on this Behaviour is missing) but regarding my workflow, this behavior was expected. What can I do to hide this message from unity log? (no #pragma disable code available…)