using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Experimental.PlayerLoop; public class Spinner : MonoBehaviour { private Vector3 speed = new Vector3(0, 1, 0); private void Update() { transform.rotation = Quaternion.Euler(speed * Time.deltaTime); } }