public Building SelectBuilding(Vector3 worldPoint) { var cell = GetPoint(worldPoint); var buildingCell = fieldData.GetBuildingPoint(cell.x, cell.y); if (buildingCell == null) { return(null); } int hash = GetPointHash(buildingCell); return(buildings[hash]); }