title: Why use GetComponent in unity?
body: <p>In following code, <code>AnotherScript</code> is attached to the same game object so if i want to access <code>playerScore</code> in <code>AnotherScript</code> why i use <code>GetComponent</code> in awake function? can i just declare the instance of class <code>anotherScript = new AnotherScript()</code> to access the <code>playerScore</code>? Hope my question is clear .. thanks</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  
  public class UsingOtherComponents : MonoBehaviour
  { 
      private AnotherScript anotherScript;
  
      void Awake ()
      {
          anotherScript = GetComponent&lt;AnotherScript&gt;();
      } 
  
      void Start ()
      {
          Debug.Log("The player's score is " + anotherScript.playerScore);
  
      }
  }
  </code></pre>