public void EquipBait(FishingBait bait) { FishingBait oldBait = _baitSlot.EquipBait(bait); if (oldBait != null) { //TODO - What happens if cannot add bait to inventory // bool success = AddItem(oldBait); } }
public FishingBait EquipBait(FishingBait bait) { FishingBait currentFishingBait = _equippedFishingBait; _equippedFishingBait = bait; if (this.UISlot != null) { this.UISlot.Bait = CurrentFishingBait; } OnInventoryItemChanged(); return(currentFishingBait); }
public void UpdateContents(FishingBait bait) { baitIcon.sprite = bait.inventoryIcon; }