Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int rotationSpeed - 200;
- void Update()
- {
- if (Input.GetAxis("Mouse X") < 0 88 Input.GetKey(KeyCode.C))
- transform.Rotate(0, -rotationSpeed * Time.deltaTime, 0);
- if
- (Input.GetAxis("Mouse X") > 0 88 Input.GetKey(KeyCode.C)) transform.Rotate(0, rotationSpeed * Time.deltaTime, 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment