public void Display(IDesire desire, ITrader trader, ISettlement settlement) { this.desire = desire; this.trader = trader; this.settlement = settlement; nameText.text = desire.GetName(); priceText.text = "Cost: " + desire.GetPrice() + "c"; positiveText.text = "Positive impact: " + desire.GetPositiveImpact(); negativeText.text = "Negative impact: " + desire.GetNegativeImpact(); UiMethods.ListResources(UiMethods.ColapseResources(desire.GetResources()), resourceText, contentDisplace, this.gameObject); }
public void Display(IWorkshop workshop, ITrader trader, ISettlement settlement) { this.trader = trader; this.settlement = settlement; this.workshop = workshop; nameText.text = workshop.GetName(); timeText.text = "Time: " + DisplayTime(workshop.GetTime()); costText.text = "Cost: " + workshop.GetCost() + "c"; UiMethods.ListResources(UiMethods.ColapseResources(workshop.GetNeeded()), neededText, contentDisplace, this.gameObject); UiMethods.ListResources(UiMethods.ColapseResources(workshop.GetProduced()), producedText, contentDisplace, this.gameObject); }