Files
beyond/Assets/ThirdParty/Simple Scroll-Snap/Examples/Example 6 (3D Shape Selection)/Scripts/Rotator.cs
2024-11-20 15:21:28 +01:00

14 lines
319 B
C#

using UnityEngine;
namespace DanielLochner.Assets.SimpleScrollSnap
{
public class Rotator : MonoBehaviour
{
[SerializeField] private float rotationSpeed;
private void Update()
{
transform.Rotate(Vector3.up, rotationSpeed * Time.deltaTime, Space.World);
}
}
}