using UnityEngine; using System.Collections; public class TestRotate : MonoBehaviour { public int speed = 0; // Use this for initialization void Start () { } // Update is called once per frame void Update () { //transform.Rotate(Vector3.right * Time.deltaTime*speed); transform.RotateAround(Vector3.zero, Vector3.right, speed * Time.deltaTime); } }