public void BoostStart() { var end = GenerateLevel.GetStartPos(); var start = GenerateLevel.GetEndPos(); var place = Vector3.Lerp(start, end, 0.5f); MainBall._active = false; MainBall._trail.gameObject.SetActive(true); MainBall.transform.DOMove(place, 2f).OnComplete(() => { MainBall._trail.time = 0f; MainBall._active = true; MainBall._trail.gameObject.SetActive(false); }); }