16 lines
376 B
C#
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);
|
|
}
|
|
}
|