mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-05-03 23:04:25 +02:00
12 lines
213 B
C#
12 lines
213 B
C#
using UnityEngine;
|
|
|
|
public class Rotate : MonoBehaviour
|
|
{
|
|
[SerializeField] private float rotateSpeed;
|
|
|
|
void Update()
|
|
{
|
|
transform.Rotate(Vector3.forward * rotateSpeed * Time.deltaTime);
|
|
}
|
|
}
|