15 lines
398 B
C#
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|