Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- grounded = Physics2D.Linecast(transform.position, groundCheck.position, 1 << LayerMask.NameToLayer("Ground"));
- if (Input.GetButtonDown("Jump") && grounded)
- {
- jump = true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement