Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var jumpSpeed = 100.0;
- function Jump(){
- rigidbody.AddForce(Vector3.up*jumpSpeed);
- }
- function Update(){
- if Input.GetButton("jump"){
- Jump();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement