Files
Cielonos/Assets/External VFXs/Piloto Studio/Scripts/Rotator.cs
SoulliesOfficial ef7b479712 initial
2025-11-25 08:19:33 -05:00

31 lines
443 B
C#

using System.Collections;
using UnityEngine;
namespace PilotoStudio
{
public class Rotator : MonoBehaviour
{
public float x = 0f;
public float y = 0f;
public float z = 0f;
public bool useGlobal;
private void Update()
{
if (!useGlobal)
{
this.transform.Rotate(new Vector3(x, y, z) * Time.deltaTime);
}
else
{
this.transform.Rotate(new Vector3(x, y, z) * Time.deltaTime, Space.Self);
}
}
}
}