14 lines
319 B
C#
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);
|
|
}
|
|
}
|
|
} |