/*关于四只羊的图片翻转
*0节点 Vector3.zero
*6节点 new Vector3(0,180,0)
*创建的10个移动节点,代码判断如下
*/
void Start() { Init(); transform.DOPath(_movePoints, 10).SetEase(Ease.Linear).OnWaypointChange(x => { transform.eulerAngles = x switch { 0 => Vector3.zero, 6 => new Vector3(0, 180, 0) }; }); }