Advertisement
Guest User

Untitled

a guest
Apr 8th, 2021
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.19 KB | None | 0 0
  1.     if (Input.GetMouseButtonDown(0) | Input.GetKey(KeyCode.Space))
  2.             { Time.timeScale = 1;
  3.                 rb.velocity = Vector2.up * speed; //0,1  
  4.                 Jump.Play();
  5.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement