Пример #1
0
 void ItemClicked()
 {
     /*if(!open){
      *      useButton.gameObject.SetActive(true);
      *      discardButton.gameObject.SetActive(true);
      *      open = true;
      * }
      * else{
      *      useButton.gameObject.SetActive(false);
      *      discardButton.gameObject.SetActive(false);
      *      open = false;
      * }*/
     panel.SetType(0);
     panel.Setup(item.description, UseItem, true);
     if (!item.Usable(player))
     {
         panel.DisableConfirm();
     }
     panel.gameObject.SetActive(true);
     if (panel.confirmButton.IsInteractable())
     {
         panel.confirmButton.Select();
     }
     else
     {
         panel.cancelButton.Select();
     }
     menu.currentTab  = 8;
     menu.currentItem = index;
 }