12 lines
217 B
C#

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