private void OnItemPickup(ItemPickupEventData data) { if (data.Item.Id != this.Data.ItemId || !data.Item.Inventory.gameObject.IsCharacter()) { return; } AddQuantity(); }
private void OnItemPickup(ItemPickupEventData data) { if (Game.Instance == null || !Game.Instance.State.IsScenario) { return; } this.pool.Spawn().Construct(data.Item); }
private void OnItemPicked(ItemPickupEventData data) { MarkRecipesForRefresh(); }
private void OnItemPicked(ItemPickupEventData data) { Slots[data.Index].ChangeItem(data.Item); }
private void OnItemPicked(ItemPickupEventData data) { Refresh(); }