2020-09-22 Unity使用DoTween实现曲线移动
2020-09-30 本文已影响0人
VECTOR_Y
Vector3[] path1 = new Vector3[3];
path1[0] = ball_Slot.transform.position;//起始点
path1[1] = new Vector3(ball_Slot.transform.position.x + 0.5f,player._instacce. ball_Slot.position.y + 1, 0);//中间点
path1[2] = player._instacce.ball_Slot.position;//终点
var tweenPath = ballA.transform.DOPath(path1, 1f, PathType.CatmullRom);
tweenPath.onComplete = () =>
{
};