title: How to avoid calling GetComponent() in OnTriggerEnter()?
body: <p>Simple question here..</p>
  
  <p>I just want to know if there is a way to avoid calling <code>GetComponent&lt;Script&gt;()</code> inside <code>OnTriggerEnter(Collider other)</code>? i'm trying to avoid doing this since I know that GetComponent is slow.</p>
  
  <pre><code>private void OnTriggerEnter(Collider other)
  {
      Tile tile = other.GetComponent&lt;Tile&gt;();
      if (tile.colorIndex == GameManager.Instance.currentTargetColorIndex)
      {
          Debug.Log("Hit!");
      }
  }
  </code></pre>