title: The type or namespace name not found
body: <p>I have a code write in C# which I use in unity5 but because was for a old version of unity I have a little problem.</p>
  
  <blockquote>
    <p>error CS0246: The type or namespace name `collider' could not be
    found. Are you missing a using directive or an assembly reference?</p>
  </blockquote>
  
  <p>Code is </p>
  
  <pre><code>Vector3 worldPosition = GetComponent&lt;collider&gt;().bounds.center + Vector3.up * collider.bounds.size.y * 0.5f;
  </code></pre>
  
  <p>If you want a perspective of code <a href="http://pastebin.com/hvWD17Du" rel="nofollow">here</a>.</p>