Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Update()
- {
- if(Input.getKeyDown(jumpKey))
- {
- doJump = true;
- }
- }
- FixedUpdate()
- {
- if(doJump)
- {
- doJump = false;
- Jump();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement