2020-09-22 Unity使用DoTween实现曲线移动
作者:
VECTOR_Y | 来源:发表于
2020-09-30 10:24 被阅读0次 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 = () =>
{
};
本文标题:2020-09-22 Unity使用DoTween实现曲线移动
本文链接:https://www.haomeiwen.com/subject/acoiyktx.html
网友评论