void Render() { var industry = ScreenUtils.GetSelectedIndustry(Q); var niches = Markets.GetObservableNichesInIndustry(industry, Q); GetComponent <NicheListView>().SetItems(niches); }
public override void Execute() { IndustryType industryType = ScreenUtils.GetSelectedIndustry(Q); var c = Enum.GetValues(typeof(IndustryType)); int index = Array.IndexOf(c, industryType); int next = Tweak(index); if (next >= c.Length) { next = 0; } if (next < 0) { next = c.Length - 1; } NavigateToIndustry((IndustryType)c.GetValue(next)); }
void Render() { industryType = ScreenUtils.GetSelectedIndustry(Q); IndustryName.text = Enums.GetFormattedIndustryName(industryType) + " Industry"; }