1 << LayerMask.NameToLayer("Ground")
只用某层
grounded = Physics2D.Linecast(transform.position, groundCheck.position, 1 << LayerMask.NameToLayer("Ground"));
1 << LayerMask.NameToLayer("Ground")
只用某层
grounded = Physics2D.Linecast(transform.position, groundCheck.position, 1 << LayerMask.NameToLayer("Ground"));