15 lines
398 B (Stored with Git LFS)
C#
15 lines
398 B (Stored with Git LFS)
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);
|
|
}
|
|
}
|
|
} |