Example #1
0
    public void OnOpenScreen()
    {
        for (int i = 0; i < marketElements.Length; i++)
        {
            if (i == 0 || PreferencesSaver.IsOpenElementInMarket(i))
            {
                marketElements[i].Open();
            }
            else
            {
                marketElements[i].Close();
            }
        }

        int currentElementNum = PreferencesSaver.GetCurrentElementInMarket();

        SelectCurrentElement(marketElements[currentElementNum]);
    }
Example #2
0
 public void UpdateBackground()
 {
     library.bgController.SetBackground(PreferencesSaver.GetCurrentElementInMarket());
 }