Files
JJBB/Assets/Project/Script/GUI/Base/UIAnimationTurnAround.cs
2024-08-23 15:49:34 +08:00

16 lines
360 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
[ExecuteInEditMode]
public class UIAnimationTurnAround : MonoBehaviour {
public float deltaAngle = float.MinValue; // 每秒转动角度
private void Update()
{
transform.Rotate(new Vector3(0, 0, deltaAngle));
}
}