title: create function in line with () => func
body: <p>I want to create an easy function as a parameter in unity, something like this (in c#):</p>
  
  <pre><code>Invoke((() =&gt; { alarm = true; }), 3 );
  </code></pre>
  
  <p>but this is not working in unity, it says: you cannot convert lambda expressions into strings because invoke needs a string. Any solution?</p>