Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Input.GetButtonDown("Focus")){speedNow = speedFocused;}
- if (Input.GetButtonUp("Focus"){speedNow = speedNormal;}
- rb.velocity = movement * speedNow;
- if (Input.GetButton("Focus"){rb.velocity = movement * speedFocused;}
- else {rb.velocity = movement * speedNormal;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement