Vector2.Lerp 速度 先快后慢
vector2.moveTowards匀速
平滑阻尼
xx.positon=vector2.SmoothDamp(xx.position,xxx.position,ref currentvelocity,1)
1是代表平滑时间
vector2 currentvelocity=new vector2(1,0)
一般使用 vector.moveTowards
Vector2.Lerp 速度 先快后慢
vector2.moveTowards匀速
平滑阻尼
xx.positon=vector2.SmoothDamp(xx.position,xxx.position,ref currentvelocity,1)
1是代表平滑时间
vector2 currentvelocity=new vector2(1,0)
一般使用 vector.moveTowards