|
|
|
|
|
|
using System.Collections; |
|
|
|
using System.Collections.Generic; |
|
|
|
using UnityEngine; |
|
|
|
|
|
|
|
public class SpinningUI : MonoBehaviour |
|
|
|
{ |
|
|
|
private RectTransform rectComponent; |
|
|
|
public float rotateSpeed = 200f; |
|
|
|
|
|
|
|
private void Start() |
|
|
|
{ |
|
|
|
rectComponent = GetComponent<RectTransform>(); |
|
|
|
} |
|
|
|
|
|
|
|
private void Update() |
|
|
|
{ |
|
|
|
rectComponent.Rotate(0f, 0f, rotateSpeed * Time.deltaTime); |
|
|
|
} |
|
|
|
} |