public void MoveLocationsInSameAreas(NativeSlice <NavMeshLocation> locations, NativeSlice <Vector3> targets, int areaMask = -1) { bool flag = locations.Length != targets.Length; if (flag) { throw new ArgumentException("locations.Length and targets.Length must be equal"); } AtomicSafetyHandle.CheckReadAndThrow(this.m_Safety); NavMeshQuery.MoveLocationsInSameAreas(this.m_NavMeshQuery, locations.GetUnsafePtr <NavMeshLocation>(), targets.GetUnsafeReadOnlyPtr <Vector3>(), locations.Length, areaMask); }