using UnityEngine; public class Rotator : MonoBehaviour { [SerializeField] private Vector3 angularVelocity = new Vector3(0f, 90f, 0f); private void Update() { transform.Rotate(angularVelocity * Time.deltaTime); } }