Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void checkInput(){
- if (Input.GetKeyDown (KeyCode.Space)) {
- pressed = true;
- } else if(Input.GetKeyUp(KeyCode.Space) && pressed){
- pressed = false;
- print ("Entered");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement