Пример #1
0
 private void Update()
 {
     if (isInRange && Input.GetKeyDown(itemPickupKeyCode))
     {
         if (Item != null)
         {
             itemEquip.AddItemToEquip(Item, this.gameObject);
             itemInfoDialog.SetActive(true);
             if (Item as EquipableItem)
             {
                 itemInfo.ShowInfo((EquipableItem)Item);
             }
         }
     }
 }