title: Calling member functions of dynamic objects
body: <p>I have the following code.</p>
  
  <pre><code>GameObject target;
  dynamic script;
  script = target.GetComponent("ScriptName");
  script.changeState();
  </code></pre>
  
  <p>Although I am using unity3d tool for game development, I feel this relates more to a generic c# question. In the code, I am obtaining an object which is the script linked to another gameobject. My aim is to call the changeState() function of the script belonging to 'target'. This gives an error since it cannot determine whether changeState() belongs to the dynamic variable 'script'. Is there any option to turn this off(analogous to #define pragma strict)? Is there any other workaround?</p>
  
  <p>Note: Script attached to a GameObject referred by this script has an implementation of changeState() function.</p>