WebLoading.cs 487 B

12345678910111213141516171819202122232425
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class WebLoading : MonoBehaviour, ILoading
  5. {
  6. public float speed;
  7. public void SetActive(bool active)
  8. {
  9. gameObject.SetActive(active);
  10. }
  11. public void UpdateProgress(float progress)
  12. {
  13. }
  14. private void LateUpdate()
  15. {
  16. var angle = transform.localEulerAngles;
  17. angle.z += Time.deltaTime * speed;
  18. transform.localEulerAngles = angle;
  19. }
  20. }