HeavenStudioPlus/Assets/Scripts/Transform/Rotate.cs

12 lines
213 B
C#
Raw Normal View History

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