Esempio n. 1
0
//	public void TryTransferItemToOtherShop(Item item)
//	{
//		if (otherShop.gold >= item.price)
//		{
//			gold += item.price;
//			otherShop.gold -= item.price;
//
//			AddItem(item, otherShop);
//			RemoveItem(item, this);
//
//			RefreshDisplay();
//			otherShop.RefreshDisplay();
//			Debug.Log ("enough gold");
//
//		}
//		Debug.Log ("attempted");
//	}

//	private void AddItem(Item itemToAdd, ScrollList List)
//	{
//		List.itemList.Add (itemToAdd);
//	}

    public void ThrowOneItem(Item itemToThrow, ScrollList List)
    {
//		int remain = items [itemToThrow.itemName];
//		itemToThrow.itemRemain -= 1;
//		if (itemToThrow.itemRemain <= 0) {
//			RemoveItem (itemToThrow, List);
//			Debug.Log ("Throw");
//		}
        playerScript.throwItem(itemToThrow.itemName);

        RefreshDisplay();
    }