public NavMeshQuery(NavMeshWorld world, Allocator allocator, int pathNodePoolSize = 0) { bool flag = !world.IsValid(); if (flag) { throw new ArgumentNullException("world", "Invalid world"); } this.m_NavMeshQuery = NavMeshQuery.Create(world, pathNodePoolSize); DisposeSentinel.Create(out this.m_Safety, out this.m_DisposeSentinel, 0, allocator); NavMeshQuery.AddQuerySafety(this.m_NavMeshQuery, this.m_Safety); }