CapersProject/Assets/AllIn1VfxToolkit/Demo & Assets/Demo/Scripts/AllIn1AutoRotate.cs
SweetJJuya 11bc3b60ca 임시
2025-02-10 14:47:48 +09:00

15 lines
398 B
C#

using UnityEngine;
namespace AllIn1VfxToolkit.Demo.Scripts
{
public class AllIn1AutoRotate : MonoBehaviour
{
[SerializeField] private float rotationSpeed = 30f;
[SerializeField] private Vector3 rotationAxis = Vector3.up;
private void Update()
{
transform.Rotate(rotationAxis * (rotationSpeed * Time.deltaTime), Space.Self);
}
}
}