autozhuan.cs 371 B

1234567891011121314
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class autozhuan : MonoBehaviour
  5. {
  6. public float rotationSpeed = 60.0f; // 旋转速度
  7. void Update()
  8. {
  9. RectTransform rectTransform = GetComponent<RectTransform>();
  10. rectTransform.localEulerAngles -= Vector3.forward * Time.deltaTime * rotationSpeed;
  11. }
  12. }