title: Using yield WaitForSeconds
body: <p>I might be asking something that's extremely obvious and I have overlooked something, but I'm trying to create a pause before it does something.</p>
  
  <p>I have seen this being used in many places online -</p>
  
  <pre><code>yield WaitForSeconds(2);
  </code></pre>
  
  <p>However I get a syntax error of,</p>
  
  <blockquote>
    <p>"Error CS1528: Expected ; or = (cannot specify constructor arguments
    in declaration) (CS1528) (Assembly-CSharp)</p>
  </blockquote>
  
  <p>Which confuses me as im not really sure what <code>yield</code> as a keyword really means or does, and im under the assumption that <code>WaitForSeconds</code> is a class of its on with the "2" being in the constructor (not in a declaration) any help would be appreciated. thanks!</p>