mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-04-30 17:44:32 +02:00
12 lines
195 B
C#
12 lines
195 B
C#
using UnityEngine;
|
|
|
|
public class Rotate : MonoBehaviour
|
|
{
|
|
public float rotateSpeed;
|
|
|
|
void Update()
|
|
{
|
|
transform.Rotate(Vector3.forward * rotateSpeed * Time.deltaTime);
|
|
}
|
|
}
|