public int GetPathResult(NativeSlice <PolygonId> path) { AtomicSafetyHandle.CheckWriteAndThrow(this.m_Safety); bool flag = !NavMeshQuery.HasNodePool(this.m_NavMeshQuery); if (flag) { throw new InvalidOperationException("This query has no buffer allocated for pathfinding operations. Create a different NavMeshQuery with an explicit node pool size."); } return(NavMeshQuery.GetPathResult(this.m_NavMeshQuery, path.GetUnsafePtr <PolygonId>(), path.Length)); }