예제 #1
0
        public void ToggleShop()
        {
            if (selectedButton != null)
            {
                selectedButton.DeselectItem();
                selectedButton = null;
            }

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