Files
TestGame/Assets/RotatingCubeBehaviour.cs
2021-12-21 18:53:43 +01:00

10 lines
185 B
C#

using UnityEngine;
public class RotatingCubeBehaviour : MonoBehaviour
{
private void Update()
{
transform.Rotate(new Vector3(180, 180, 0) * Time.deltaTime);
}
}