HeavenStudioPlus/Assets/Scripts/Transform/Rotate.cs

11 lines
195 B
C#

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