HeavenStudioPlus/Assets/Scripts/Transform/Rotate.cs
2021-12-18 23:10:43 -05:00

11 lines
213 B
C#

using UnityEngine;
public class Rotate : MonoBehaviour
{
[SerializeField] private float rotateSpeed;
void Update()
{
transform.Rotate(Vector3.forward * rotateSpeed * Time.deltaTime);
}
}