Example #1
0
    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);
    }
Example #2
0
    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();
    }
Example #3
0
 public FactoryCellData(ShipRecipe shipRecipe)
 {
     this.shipRecipe = shipRecipe;
 }
Example #4
0
 public void ShowBuildShipView(ShipRecipe shipRecipe)
 {
     buildShipView.ShowView(shipRecipe);
 }