I've recently started to learn some C# scripting in Unity. I've been able to make my PlayerCube move around using Vector3 Transform.translations, but I want my camera to follow my cube while moving around, and it's not working since Unity can't find PlayerCube. How do I make make it so it understands that there's a PlayerCube? 

using UnityEngine;
using System.Collections;

public class CameraScript : MonoBehaviour {
    Player = GameObject.Find("PlayerCube");

    // Use this for initialization
    void Start () 
    {
    //  GameObject.Find(PlayerCube);
    }

    // Update is called once per frame
    void Update () 
    {
        Transform.LookAt (PlayerCube);
    }
}



Question: Plot has red 'film', no error message
Answer: The pink box shows a formatting error. You can disable highlighting of formatting errors for a specific object using Style:

Style[
 Graphics[{Disk[], garbage}],
 AutoStyleOptions -&gt; {"HighlightFormattingErrors" -&gt; False}]




You can also change the setting globally using the Preferences dialog (Edit - Preferences - Messages - Formatting error indications), or just for the current session using:

SetOptions[$FrontEndSession,  AutoStyleOptions -&gt; {"HighlightFormattingErrors" -&gt; False}]