ReisenYoumuOuting/Assets/Scripts/SpinEffect.cs

10 lines
No EOL
200 B
C#

using UnityEngine;
public class SpinEffect : MonoBehaviour
{
[SerializeField] private float rotationSpeed;
void Update()
{
transform.Rotate(Vector3.forward, rotationSpeed * Time.deltaTime);
}
}