mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-14 13:45:10 +00: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);
|
||
|
}
|
||
|
}
|