Пример #1
0
    void Render()
    {
        var industry = ScreenUtils.GetSelectedIndustry(Q);
        var niches   = Markets.GetObservableNichesInIndustry(industry, Q);

        GetComponent <NicheListView>().SetItems(niches);
    }
Пример #2
0
    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));
    }
Пример #3
0
    void Render()
    {
        industryType = ScreenUtils.GetSelectedIndustry(Q);

        IndustryName.text = Enums.GetFormattedIndustryName(industryType) + " Industry";
    }