using UnityEngine; public class YRotator : MonoBehaviour { [SerializeField] private float RotationSpeed; void Update() { transform.Rotate(Vector3.up * Time.deltaTime * RotationSpeed); } }