title: The name does not exist in the current context Unity script
body: <p>I'm missing something important here but I can't figure out what it is.</p>
  
  <p>I have a camera object with a script attached to it (NoiseAndGrain.cs)</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  
  public class EventHandler : MonoBehaviour {
      public GameObject cameraLeft;
      public GameObject cameraRight;
  
      void Start () {   
          if (GlobalVariables.grainON == false) {
              cameraLeft.GetComponent&lt;NoiseAndGrain&gt;.enabled = false;
          }
      }
  </code></pre>
  
  <p>I'm reading the camera object and I'm able to call everything attached to it (GUI Layer, Transform, Flare layer and so on)
  except the cs scripts.
  For example</p>
  
  <pre><code>cameraLeft.GetComponent&lt;GUILayer&gt;.enabled = false;
  </code></pre>
  
  <p>works perfectly.</p>
  
  <p>All these scripts are in the Standard Assets directory and I don't understand what's going on.</p>
  
  <p>Any idea?</p>