title: Check a value exist in array in unity 3d
body: <p>I have two script.</p>
  
  <p>Script1
  Script2</p>
  
  <p>In Script1 i declared a arraylist it contains value 2, 4, 6, etc...</p>
  
  <pre><code>public static ArrayList aArray= new ArrayList();
  
  function update(){
     if(bool1)
     {
        aArray.Add(i);
     }
  }
  </code></pre>
  
  <p>I have to check a value 5 exist in arraylist from Script2. </p>
  
  <p><strong>if value exists i have to get its key.</strong></p>
  
  <p>How to get it?</p>