title: How to pass Sphere as parameter to script in Unity3d?
body: <p>I have created several Sphere objects and added them to my scene in Unity3d. Now I need to pass these objects to my script and work with those objects. <strong>How do I do that?</strong> For example when I need to pass Terrain object to the script I would write...</p>
  
  <pre><code>public class A: MonoBehaviour {
      public Terrain terrain;
      void Start () {
          terrain = terrain.GetComponent&lt;Terrain&gt;();
      }
      .....
  }
  </code></pre>
  
  <p>... and this would work but I can't write:</p>
  
  <pre><code> public class A: MonoBehaviour {
      public Sphere sphere;
      void Start () {
          sphere = sphere.GetComponent&lt;Sphere&gt;();
      }
      .....
  }
  </code></pre>
  
  <p>because there is no such type as Sphere (right?).</p>