public override void SetPanel() { finances = GameController.instance.player.finances; salary.text = (GameController.instance.roomOverseer.GetAllSceneObjects().Count > 0)? (finances.expences.GetMonthSallary / (finances.expences.workersOnObject * GameController.instance.roomOverseer.GetAllSceneObjects().Count)).ToString() + " $" : 0.ToString() + " $"; workers.text = (finances.expences.workersOnObject * GameController.instance.roomOverseer.GetAllSceneObjects().Count).ToString(); energy.text = finances.expences.GetEnergyCost.ToString() + " $"; heating.text = finances.expences.GetHeatingCost.ToString() + " $"; tax.text = finances.expences.GetTaxes.ToString() + " $"; totalExpencesMonth.text = finances.GetTotalMonthExpences().ToString() + " $"; revenueMonth.text = finances.revenue.LastOrDefault().ToString() + " $"; totalRevenue.text = finances.revenue.Sum().ToString() + " $"; if (finances.revenue.Count >= 1 && finances.dates.Count >= 1) { int maxrevenue; GameDate bestDate = FindBestMonth(out maxrevenue); bestMonth.text = bestDate.month.ToString() + ",\n" + bestDate.year.ToString(); } else { bestMonth.text = "None"; } breakEvenPoint.text = finances.GetBreakEvenPointMoney() + " $"; investments.text = (finances.activeExpences.Count > 1)? finances.activeExpences.Sum().ToString() + " $":"0 $"; productionAll.text = (finances.itemsProduced.Count > 1)?finances.itemsProduced.Sum().ToString() + " units":" 0 units"; productionYear.text = finances.GetYearProduction() + " units"; margin.text = finances.GetMarginSafetyPercentage() + " %\n" + finances.GetMarginSafetyMoney() + " $"; DrawBar(); }