10 lines
No EOL
200 B
C#
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);
|
|
}
|
|
} |