public override void ViewRender() { base.ViewRender(); var company1 = SelectedCompany; //var competitors = Companies.GetCompetitorsOfCompany(company1, Q, false).ToArray(); var list = competitors; var company2 = list.Count() > 0 ? competitors[offset] : company1; Name1.text = RenderName(company1); Name2.text = RenderName(company2); CompareData("Max feature lvl", MaxRating1, MaxRating2, Products.GetFeatureRatingCap(company1), Products.GetFeatureRatingCap(company2)); FeatureCap1.SetHint(Teams.GetMaxFeatureRatingCap(company1, Q).ToString()); FeatureCap2.SetHint(Teams.GetMaxFeatureRatingCap(company2, Q).ToString()); //SetHints(MaxRating1, ) CompareData("Marketing quality", MarketingEfficiency1, MarketingEfficiency2, Teams.GetMarketingEfficiency(company1), Teams.GetMarketingEfficiency(company2)); CompareData("Employees", Employees1, Employees2, Teams.GetTotalEmployees(company1), Teams.GetTotalEmployees(company2)); CompareData("Marketing Budget", MarketingBudget1, MarketingBudget2, Economy.GetMarketingBudget(company1, Q), Economy.GetMarketingBudget(company2, Q)); CompareData("Funding", Funding1, Funding2, Economy.GetFundingBudget(company1, Q), Economy.GetFundingBudget(company2, Q)); }
public override void ViewRender() { base.ViewRender(); var product = SelectedCompany; if (!product.hasProduct) { return; } var profit = Economy.GetProfit(Q, product, true); var funding = Economy.GetFundingBudget(product, Q); Funding.text = Visuals.Positive(Format.Money(funding)); var income = Economy.GetProductIncome(product); Income.text = Visuals.Positive(Format.Money(income)); var marketingBudget = Economy.GetMarketingBudget(product, Q); MarketingBudget.text = Visuals.Negative(Format.Money(marketingBudget)); }