title: Unity3D C#-Pass List value to another class
body: <p>may I ask about how to pass List value to another class?For example :</p>
  
  <pre><code>using System.Collections.Generic;
  public class PassListClass : MonoBehaviour
  {
   List&lt;int&gt; passInt=new List&lt;int&gt;();
  
   public void Start()
   {
    passInt.Add(1);
    passInt.Add(3);
   }
  
   .
   .
   .
  }
  </code></pre>
  
  <p>So I want to pass 1 and 3 to another class,what should I do after create class instance and call it at another class?I already tried to call the List value to another class but seen not working.Actually I want to pass a list of game object to another class,just trying to get some idea.Thanks for help.</p>