public class sp : MonoBehaviour { private float ang; void Update () { ang += 1f; transform.rotation = Quaternion.Euler (new Vector3 (0,0,ang)); } }