LoadingCircle.cs 410 B

12345678910111213141516171819
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class LoadingCircle : MonoBehaviour
  5. {
  6. private RectTransform rectComponent;
  7. private float rotateSpeed = -200f;
  8. private void Start()
  9. {
  10. rectComponent = GetComponent<RectTransform>();
  11. }
  12. private void Update()
  13. {
  14. rectComponent.Rotate(0f, 0f, rotateSpeed * Time.deltaTime);
  15. }
  16. }