12 lines
207 B
C#
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);
|
|
}
|
|
}
|