首次提交
This commit is contained in:
10
Assets/Scripts/Demo/Spin.cs
Normal file
10
Assets/Scripts/Demo/Spin.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class Spin : MonoBehaviour
|
||||
{
|
||||
[SerializeField] float spinSpeed = 1f;
|
||||
void Update()
|
||||
{
|
||||
transform.Rotate(0, 0, spinSpeed * Time.deltaTime);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user