title: How to wait for function in script 1 to finish before starting script 2?
body: <p>In Unity I have GameObjectName which has script 1 and script 2 attached to it. Script1 is an IEnumerator like this.</p>
  
  <pre><code>public IEnumerator Sunglasses()
  {
      // Do stuff
  }
  </code></pre>
  
  <p>Script2 looks like this.</p>
  
  <pre><code>public void Start()
  {
      Function1();
      String blah = "Things";
      Function2();
      StartCoroutine(Routine2());
      StartCoroutine(Routine3());
  }
  </code></pre>
  
  <p>I need script 1 to finish Sunglasses before script 2 does anything. If I try accessing GameObjectName.Script1 from Script2, Unity says it doesn't exist. How can I make sure that script 1 finishes before starting script 2?</p>