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