void showBuildingInfo() { if (GameUtility.GetTileUnderMousePosition(out Tile tile)) { if (tile is TileWithBuilding tileWithBuilding) { if (tileWithBuilding.Building is StorageBuilding) { StorageBuilding storageBuilding = (StorageBuilding)tileWithBuilding.Building; StorageInfo.ShowRecources(storageBuilding.Storage); } else if (tileWithBuilding.Building is BuildingNearRoad buildingNearRoad) { BuildingInfoUI.ShowUI(buildingNearRoad); } } else { //Debug.Log("Тайл " + tile.TileID + " без строения"); } } }