title: Send Enum value in another script?
body: <p>I would like to pass an enum value in a function of another script (in C#, and Unity3d), if I directly pass them through public variables, I have got an "Inconsistent accessibility" error (field type 'xx' is less accessible than field 'xx'), and I did not find how to solve this. (attempt#1 below)</p>
  
  <p>So I have tried to pass a List through the SendMessage function (that can only send 1 object), but it now says </p>
  
  <blockquote>
    <p><em>"error CS0246: The type or namespace name <code>List</code>1' could not be found.
    Are you missing a using directive or an assembly reference?"</em></p>
  </blockquote>
  
  <p>Would you know how to do this?</p>
  
  <p>Here are my attempts :</p>
  
  <pre><code>private AState currentAState;//attempt #1 //with all my var "public" : same thing
  //...
  modelGOscript.currentA = currentAState;//#1
  //...
  modelGO.SendMessage ("animToPlay", new List&lt;AState&gt;(currentAState, newAState) );//#2
  </code></pre>
  
  <p>Thanks</p>