title: Unity - Checking if the player is grounded not working
body: <p>I want the player to jump when the player is grounded.</p>
  
  <pre><code>private void OnTriggerStay(Collider other)
  {
      if(other.gameObject.layer == 8)
      {
          isGrounded = true;
      }else { isGrounded = false; }
  }
  </code></pre>
  
  <p>The player is on air when spawning. After the player falls to the Terrain, which has the tag <code>Ground</code>, <code>isGrounded</code> is still false. When I set isGrounded manually true and jump again, it's still true after collision. I also don't want the player to double jump in the air, which I probaly already coded but is not working because something is wrong. </p>
  
  <p>Changing <code>OnTriggerStay</code> to <code>OnTriggerEnter</code> doesn't change something. I hope you can help me.</p>