adding project
This commit is contained in:
11
Assets/Scripts/SpinCube.cs
Normal file
11
Assets/Scripts/SpinCube.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class SpinCube : MonoBehaviour
|
||||
{
|
||||
public float speed = 90f; // degrees per second
|
||||
|
||||
void Update()
|
||||
{
|
||||
transform.Rotate(Vector3.up, speed * Time.deltaTime);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user