title: Unity 3d - system.action<string> how to make it work in a IEnumerator?
body: <p>I have a problem with my understanding of system.action in c#. I want the IEnumerator to print out the string in the method, how can I archieve this? I can't find anything on this. Ik know system.action allows you to pass a method, but how can I pass a method with a parameter, is this even the way to do it. And is there even a way to do it?</p>
  
  <p><a href="https://msdn.microsoft.com/en-us/library/018hxwa8(v=vs.110).aspx" rel="nofollow noreferrer">https://msdn.microsoft.com/en-us/library/018hxwa8(v=vs.110).aspx</a></p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  
  public class Test : MonoBehaviour {
  
      void Start()
      {
          StartCoroutine(test2(test("Hello World"))); // &lt;&lt; also an error here "cannot convert from void to System.Action&lt;string&gt;"
      }
  
      void test(string t)
      {
          Debug.Log(t);
      }
  
      IEnumerator test2 (System.Action&lt;string&gt; _method)
      {
          _method(); // &lt;&lt; here is the error how can I fix the syntax
          yield return null;
      }
  }
  </code></pre>