public void InitSource(ExtractionBuilding e, int ammnt) { extractionSource = e; totalAmmntOfResource = ammnt; if (e.resourceType == TileData.Types.rock) { rockProdType = ResourceGrid.Grid.GetTileGameObjFromIntCoords(e.targetTile.posX, e.targetTile.posY).GetComponent<Rock_Handler>().myRock._rockProductionType; } }
public void InitRock(Rock.RockProductionType rock, int ammnt) { totalAmmntOfResource = ammnt; rockProdType = rock; resourceType = TileData.Types.rock; }