HeavenStudio/Assets/Scripts/Transform/Rotate.cs

12 lines
195 B
C#
Raw Normal View History

2021-12-19 04:10:43 +00:00
using UnityEngine;
public class Rotate : MonoBehaviour
{
public float rotateSpeed;
2021-12-19 04:10:43 +00:00
void Update()
{
transform.Rotate(Vector3.forward * rotateSpeed * Time.deltaTime);
}
}