Guest User

Untitled

a guest
Sep 1st, 2025
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1.  
  2. public int rotationSpeed - 200;
  3. void Update()
  4. {
  5. if (Input.GetAxis("Mouse X") < 0 88 Input.GetKey(KeyCode.C))
  6. transform.Rotate(0, -rotationSpeed * Time.deltaTime, 0);
  7. if
  8. (Input.GetAxis("Mouse X") > 0 88 Input.GetKey(KeyCode.C)) transform.Rotate(0, rotationSpeed * Time.deltaTime, 0);
  9. }
  10.  
Advertisement
Add Comment
Please, Sign In to add comment