Example #1
0
 public void InventoryClick(InventoryDisplay inventory)
 {
     if (this.inventory == null)
     {
         return;
     }
     if (inventory.AddItem(item, count) != 0)
     {
         NullifySelection();
     }
 }
Example #2
0
 public override void Action()
 {
     if (playerInventory.AddItem(this))
     {
         //transform.gameObject.SetActive(false);
     }
     else
     {
         StartCoroutine(InventoryFullMessage());
     }
     //deactivate, or move it to player inventory??
 }