Files
badeend-go/Assets/Spinner.cs

16 lines
376 B
C#

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, -90, 0);
private void Update()
{
transform.rotation = Quaternion.Euler(transform.rotation.eulerAngles + speed * Time.deltaTime);
}
}