12 lines
298 B
C#
12 lines
298 B
C#
|
using UnityEngine;
|
||
|
|
||
|
public class ConstantRotation : MonoBehaviour
|
||
|
{
|
||
|
public float rotationSpeed = 30f; // Adjust the speed as needed
|
||
|
|
||
|
void Update()
|
||
|
{
|
||
|
// Rotate the object around its Y-axis continuously
|
||
|
transform.Rotate(Vector3.up, rotationSpeed * Time.deltaTime);
|
||
|
}
|
||
|
}
|