Project_WL/Assets/ResWork/VFX/MasterStylizedFX/Scripts/AutoRotate.cs

16 lines
333 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace MasterStylizedExplosions
{
public class AutoRotate : MonoBehaviour
{
public Vector3 RotateAngle;
private void Update()
{
transform.Rotate(RotateAngle * Time.deltaTime, Space.Self);
}
}
}