private Vector3[] _v_middle=new Vector3[]{
new Vector3(0,0,0),
}
private Vector3[] _v_end=new Vector3[]{
new Vector3(0,0,0),
}
private void InitAnimation(GameObject obj){
float random_x,random_y;
float rrra=100f;
random_x=Random.Range(_rrra,rrra);
random_y=Random.Range(_rrra,rrra);
_v_middle[0]=_startPos+new Vector3(random_x,random_y,0);
_v_end[0]=_endPos;
Sequence _seq=DOTween.Sequence();
_seq.Append(obj.transform.DOPath(_v_middle,0.2f,PathType.CatmullRom).SetEase(Ease.Linear));
_seq.AppendInterval(0.1f);
_seq.Append(obj.transform.DOPath(_v_end,0.6f,PathType.CatmullRom).SetEase(Ease.Linear));
_seq.AppendCallback(delegate{GameObject.Destroy(obj);});
}