private Tweener TranslateRoutine(Vector3 startPosition, Vector3 endPosition) { var middlePosition = Vector3.Lerp(startPosition, endPosition, 0.5f) + Vector3.up * hopHeight; return(parentTransform.DOPath( new[] { startPosition, middlePosition, endPosition }, hopForwardDuration, PathType.CatmullRom )); }