16 lines
360 B
C#
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));
|
|||
|
}
|
|||
|
}
|