Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void RotateLeft()
- {
- cameraY = Mathf.Clamp(cameraY, minAngle, maxAngle);
- if(cameraY >= minAngle)
- {
- Camera.main.transform.Rotate(0,-cameraY,0);
- }
- }
- public void RotateRight()
- {
- cameraY = Mathf.Clamp(cameraY, minAngle, maxAngle);
- if(cameraY <= maxAngle)
- {
- Camera.main.transform.Rotate(0,cameraY,0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement