private void AddNeighboor(int x, int y, int z, LinkPos.Neighbor where, ref LinkPos pos) { if (IsValidCoord(x, y, z) && IsValideNoise(x, y, z)) { pos.Add(where, new UnitPos(x, y, z)); // remove from open list, and add if (_openList.Remove(new Vector3Int(x, y, z))) { // add in current object Add(x, y, z); } } }