title: Coroutine related functions dont work when I build the project
body: <p>I have 2 scripts that feature Coroutines, and in the unity editor they work fine. But when i build the project, the funtions in both scripts start behaving weird (slow and late input).</p>
  <p>This is one of them from the player script.
  Invistime is 2, invistimedelta = 0.05.</p>
  <pre><code>private IEnumerator BeInvincible()
  {
      
     isInvincible = true;
      for (float i = 0; i &lt; invistime; i += invistimedelta)
      {
          // Flashing
          if (sprite.color == new Color(1, 1, 1, 1))
          {
              sprite.color = new Color(1, 0, 0, 1);
          }
          else
          {
              sprite.color = new Color(1, 1, 1, 1);
          }
          yield return new WaitForSeconds(invistimedelta);
      }
      sprite.color = new Color(1, 1, 1, 1);
      isInvincible = false;
      Debug.Log(&quot;frames done&quot;);
  
  }
  </code></pre>
  <p>Biggest problem is that the script featuring the coroutines, work different in entirly, not just in the courotines.</p>
  <p>Anyone who knows what's going on?</p>