using UnityEngine; public class Rotate : MonoBehaviour { public float rotateSpeed; void Update() { transform.Rotate(Vector3.forward * rotateSpeed * Time.deltaTime); } }