bool IsGrounded() { RaycastHit2D hitInfo = Physics2D.Raycast(transform.position, Vector2.down, .8f, _groundLayer.value); //Debug.DrawRay(transform.position, Vector2.down * 0.8f, Color.red, 5f, true); //Debug.Log("Checking Hit at " + transform.position.ToString()); if (hitInfo.collider != null) { _anim.AirBorn(false); return(true); } _anim.AirBorn(true); return(false); }