Example #1
0
        private void OnItemPickup(ItemPickupEventData data)
        {
            if (data.Item.Id != this.Data.ItemId || !data.Item.Inventory.gameObject.IsCharacter())
            {
                return;
            }

            AddQuantity();
        }
Example #2
0
        private void OnItemPickup(ItemPickupEventData data)
        {
            if (Game.Instance == null || !Game.Instance.State.IsScenario)
            {
                return;
            }

            this.pool.Spawn().Construct(data.Item);
        }
Example #3
0
 private void OnItemPicked(ItemPickupEventData data)
 {
     MarkRecipesForRefresh();
 }
Example #4
0
 private void OnItemPicked(ItemPickupEventData data)
 {
     Slots[data.Index].ChangeItem(data.Item);
 }
Example #5
0
 private void OnItemPicked(ItemPickupEventData data)
 {
     Refresh();
 }