public void ShowView(ShipRecipe shipRecipe) { nameText.text = shipRecipe.shipName; priceText.text = shipRecipe.price.ToString(); reqAluminiumText.text = shipRecipe.reqAluminium.ToString(); reqPlatinumText.text = shipRecipe.reqPlatinum.ToString(); gameObject.SetActive(true); }
public void StartBuildingShip(ShipRecipe shipRecipe) { var ship = new Ship(shipRecipe.shipID, shipRecipe.shipName, shipRecipe.shipMass); var manufactoryTask = new ManufactoryTask(ship); ManufactoryTasks.Add(manufactoryTask); onManufactoryTasksChange?.Invoke(); }
public FactoryCellData(ShipRecipe shipRecipe) { this.shipRecipe = shipRecipe; }
public void ShowBuildShipView(ShipRecipe shipRecipe) { buildShipView.ShowView(shipRecipe); }