public static void GetDividedCornersNonAlloc(this NavMeshPath navMeshPath, NavMeshQueryFilter filter,
                                                     float distanceDivider, float yOffset, List <Vector3> outputPath, Vector3[] pathBuffer)
        {
            int count = navMeshPath.GetCornersNonAlloc(pathBuffer);

            navMeshPath.GetDividedCornersNonAlloc(filter, distanceDivider, yOffset, outputPath, pathBuffer, count);
        }