title: Script Reference in Unity
body: <p>I'm creating a game that have multiples references to scripts, one to another. </p>
  
  <p>For exemple:</p>
  
  <ol>
  <li>Controller script </li>
  <li>SomeBehavior script </li>
  <li>GUI script</li>
  </ol>
  
  <p>My doubt enter when I can do two different things:</p>
  
  <ol>
  <li>In SomeBehavior access/edit GUI variable/function that I whant... Like: <br><br>
  1.1. variable = GameObject.Find("GuiTag").GetComponent&lt; GUI script >(); <br>
    variable.score.... and go on...
  <br><br></li>
  <li>In SomeBehavior access/edit GUI variable/function by Controller.gui (gui a public variable on controller script)... Centralization all the base scripts to one, in that way, having less variables in the scripts, less memory (perraps)...<br> <br>
  2.1. variable = GameObject.Find("ControllerTag").GetComponent&lt; Controller script >(); <br>
    variable.gui.score.... <br> <br></li>
  </ol>
  
  <p>Which one is better?</p>