Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma strict
- var speed = 150.0f;
- function Update() {
- if (transform.rotation.eulerAngles.x < 90 && transform.rotation.eulerAngles.x > 10)
- transform.Rotate(0, Input.GetAxis("Horizontal")*speed*Time.deltaTime, 0,Space.World);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement