16 lines
449 B
C#
16 lines
449 B
C#
// 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);
|
|
}
|
|
}
|
|
} |