1 using System.Collections; 2 using System.Collections.Generic; 3 using UnityEngine; 4 5 public class Rotate : MonoBehaviour { 6 private float origionZ; 7 private Quaternion targetRotation; 8 public float RotateAngle = 60; 9 public
unity中实现物体在一定角度范围内来回旋转
![](https://img-home.csdnimg.cn/images/20240711042549.png)