SHARE
TWEET

Untitled

a guest Aug 5th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Update()
  2. {
  3.     if(Input.getKeyDown(jumpKey))
  4.     {
  5.         doJump = true;​
  6.     }
  7. }
  8.  
  9. FixedUpdate()
  10. {
  11.     if(doJump)
  12.     {
  13.         doJump = false;
  14.         Jump();​
  15.     }
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top