HeavenStudio/Assets/Scripts/Transform/Rotate.cs

12 lines
195 B
C#

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