Files
beyond/Assets/ThirdParty/Lux URP Essentials/Demos/Art Assets/Volumetrics/Scripts/RotateSeeker.cs
2024-11-20 15:21:28 +01:00

23 lines
438 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RotateSeeker : MonoBehaviour
{
public float Speed = 20.0f;
Transform trans;
// Start is called before the first frame update
void Start()
{
trans = GetComponent<Transform>();
}
// Update is called once per frame
void Update()
{
trans.Rotate(0, Time.deltaTime * Speed, 0, Space.World);
}
}