1.2d翻转牌动画
public void RotateCard(Image[] obj) { int jiaodu1=0,jiaodu2=0; if (obj[0].rectTransform.rotation.y == 0) { jiaodu1 = 90; jiaodu2 = 0; } else { jiaodu1 = 0; jiaodu2 = 90; } Sequence s = DOTween.Sequence(); s.Append(obj[0].rectTransform.DORotate(new Vector3(0,jiaodu1,0),2)); s.Append(obj[1].rectTransform.DORotate(new Vector3(0, jiaodu2, 0), 2)); }