title: How to use `Action` with Unity C#?
body: <p>I want to use <code>Times</code> function in a Unity, by following <a href="http://eliasbland.wordpress.com/2010/01/24/rubys-times-function-in-csharp/" rel="noreferrer">this site</a> I use this script.</p>
  <pre><code>public static class IntExtensions
  {
      public static void Times(this int i, Action&lt;int&gt; func)
      {
          for(int j = 0; j &lt; i; j++)
          {
              func(j);
          }
      }
  }
  </code></pre>
  <p>But it causes error:</p>
  <blockquote>
  <p>Assets/Resources/Scripts/Board.cs(27,40): error CS0246: The type or namespace name <code>Action 1</code> could not be found. Are you missing a using directive or an assembly reference?</p>
  </blockquote>
  <p>It looks like there is no <code>Action</code> in Unity C#.</p>
  <p>Is there way to use the function in Unity?
  And where should I put the file if I want to use throughout my Unity project?</p>