title: Follow GameObject in Unity
body: <p>Iam newbie in Unity3D, so please help me. :)</p>
  
  <p>I have two objects:
  <strong>Player</strong> and 
  <strong>Enemy</strong>
  and I need follow Player by Enemy.
  I tried something like this:</p>
  
  <pre><code>var player : GameObject;
  
  function Start ()
  {
      var agent: NavMeshAgent = GetComponent.&lt;NavMeshAgent&gt;();
      agent.SetDestination(player.transform.position);
  }
  function Update () {
  
  }
  </code></pre>
  
  <p>but nothing happens. </p>