Files
Jenkins_UnityBuild_TestProject/Assets/Scripts/SpinCube.cs
2025-08-25 15:39:32 +02:00

12 lines
207 B
C#

using UnityEngine;
public class SpinCube : MonoBehaviour
{
public float speed = 90f; // degrees per second
void Update()
{
transform.Rotate(Vector3.up, speed * Time.deltaTime);
}
}