Exemplo n.º 1
0
        public void ToggleShop()
        {
            if (selectedButton != null)
            {
                selectedButton.DeselectItem();
                selectedButton = null;
            }

            UpdateGemsText();
            ShopCanvas.Toggle();
            IsEnabled = !IsEnabled;
            player.TogglePlayerActions();
        }
Exemplo n.º 2
0
 void SelectButton(ShopButton item)
 {
     if (selectedButton == null)
     {
         selectedButton = item;
         item.SelectItem();
         SetCamera();
     }
     else
     {
         selectedButton.DeselectItem();
         selectedButton = item;
         item.SelectItem();
         SetCamera();
     }
 }