Exemplo n.º 1
0
    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);
        }
    }
Exemplo n.º 2
0
    public FishingBait EquipBait(FishingBait bait)
    {
        FishingBait currentFishingBait = _equippedFishingBait;

        _equippedFishingBait = bait;
        if (this.UISlot != null)
        {
            this.UISlot.Bait = CurrentFishingBait;
        }
        OnInventoryItemChanged();
        return(currentFishingBait);
    }
Exemplo n.º 3
0
 public void UpdateContents(FishingBait bait)
 {
     baitIcon.sprite = bait.inventoryIcon;
 }