using System.Collections; using System.Collections.Generic; using UnityEngine; public class autozhuan : MonoBehaviour { public float rotationSpeed = 60.0f; // 旋转速度 void Update() { RectTransform rectTransform = GetComponent(); rectTransform.localEulerAngles -= Vector3.forward * Time.deltaTime * rotationSpeed; } }