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