16 lines
449 B
C#
Raw Normal View History

2025-07-22 01:18:44 +05:00
// Simple Scroll-Snap - https://assetstore.unity.com/packages/tools/gui/simple-scroll-snap-140884
// Copyright (c) Daniel Lochner
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);
}
}
}