|
|
@ -0,0 +1,13 @@ |
|
|
|
using System.Collections; |
|
|
|
using System.Collections.Generic; |
|
|
|
using UnityEngine; |
|
|
|
|
|
|
|
public class spin : MonoBehaviour |
|
|
|
{ |
|
|
|
public float turnFactor = 1f; |
|
|
|
|
|
|
|
private void Update() |
|
|
|
{ |
|
|
|
transform.rotation = Quaternion.Euler(0f, Time.time * turnFactor, 0f); |
|
|
|
} |
|
|
|
} |