public void ShowStatsForFactory(FactoryController factory) { factoryUIPanel.SetActive(true); float income = factory.Income(); float levelUpCost = factory.CostToLevelUp(); incomeText.text = "Income: " + Mathf.Round(income).ToString(); levelUpText.text = "Cost to Level: " + levelUpCost.ToString(); selectedFactory = factory; CheckCanLevelUp(); }