mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-12-18 06:20:03 +00:00
11 lines
213 B
C#
11 lines
213 B
C#
using UnityEngine;
|
|
|
|
public class Rotate : MonoBehaviour
|
|
{
|
|
[SerializeField] private float rotateSpeed;
|
|
|
|
void Update()
|
|
{
|
|
transform.Rotate(Vector3.forward * rotateSpeed * Time.deltaTime);
|
|
}
|
|
}
|