title: Run function/script in another script
body: <p>I havd tried very hard to access and call a script's function from outside of the script. </p>
  
  <p>----- this is inside a c# script attached to an animating sprite </p>
  
  <pre><code>    public class example : MonoBehaviour {
      void RunZebra() {
              Zebra other = GetComponent&lt;Zebra&gt;();
              other.RunIt();
          }
       }
  </code></pre>
  
  <p>------ Zebra script attached to a sprite anim</p>
  
  <pre><code>    public class Zebra : MonoBehaviour {
          public void RunIt() {
              // action starting animation
  
           }
       }
  </code></pre>
  
  <p>But it does not execute for some reason?</p>
  
  <p>I need to access and set ScriptName's  variable so it's animation state is changed. </p>
  
  <p>Any help and I'll be a happy man.</p>