title: Unity Performance Issues Finding Game Objects?
body: <p>My simple script is supposed to follow the player, but it stopped finding the game object with the "Player" tag...
  The only solution I could find was to make a new tag, assign it to my player, then change the tag names in all the scripts.</p>
  
  <p>I found another way to find the player object, and I like it better, but I'm new to this and have no idea if it will affect performance.
  Here was my original code that couldn't correctly find the tag</p>
  
  <pre><code>public Vector3 offset;
  private Transform player;
  
  void Awake (){
      player = GameObject.FindGameObjectWithTag("Player").transform;
  }
  void Update (){
      transform.position = player.position + offset;
  }    
  </code></pre>
  
  <p>If I make it public so I can drag my player object onto the script in the inspector, is that going to affect performance and is it not a good idea?</p>
  
  <p>My common sense is telling me that is a bad way to do it because I've seen other peoples scripts and they use the FindGameObjectWithTag(). Why go through the trouble of writing the extra lines when you could just do it like this...</p>
  
  <pre><code>public Vector3 offset;          // The offset at which the Health Bar follows the player.   
  public Transform player;        // Reference to the player.
  
  void Update ()
  {
      transform.position = player.position + offset;
  }
  </code></pre>
  
  <p>Someone please let me know because I'm new to this and I don't want to start off doing things the wrong way. Thanks!</p>