public Transform GetForward(float posZ) { CurveGroup curveGroups = GetComponentInChildren <CurveGroup>(); return(curveGroups.GetForward(posZ)); }