Files
Cielonos/Assets/External VFXs/Hovl Studio/HSFiles/Scripts/HS_Rotator.cs
SoulliesOfficial 39b43680a9 爆更
2026-07-18 03:16:20 -04:00

24 lines
382 B
C#

using System.Collections;
using UnityEngine;
namespace Hovl
{
public class HS_Rotator : MonoBehaviour
{
public float x = 0f;
public float y = 0f;
public float z = 0f;
void OnEnable()
{
InvokeRepeating("Rotate", 0f, 0.0167f);
}
void OnDisable()
{
CancelInvoke();
}
void Rotate()
{
this.transform.localEulerAngles += new Vector3(x, y, z);
}
}
}