Exemple #1
0
    private void Build()
    {
        Placeable placeable = obj.GetComponent <Placeable>();

        if (placeable.is_placeable && MoneyManager.Money >= placeable.cost)
        {
            //cost can't be subtracted from money here because it might change with wall type placeables.
            placeable.cost_label = cost_label;
            placeable.Build();
            obj = null;
        }
        else
        {
            cost_label.LowFunds();
        }
    }