mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-13 00:57:36 +02:00
Fork Lifter Spaghetti Code
This commit is contained in:
11
Assets/Scripts/Transform/Rotate.cs
Normal file
11
Assets/Scripts/Transform/Rotate.cs
Normal file
@ -0,0 +1,11 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class Rotate : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private float rotateSpeed;
|
||||
|
||||
void Update()
|
||||
{
|
||||
transform.Rotate(Vector3.forward * rotateSpeed * Time.deltaTime);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user