Merchant.GetBuyFromPlayerTotal
#
Declarationpublic Int32 GetBuyFromPlayerTotal(Inventory playerInventory, GDTKItem item, Int32 count)
#
ParametersName | Description |
---|---|
playerInventory | Player's Inventory |
item | Item to check |
count | Number of the item |
#
DescriptionGets the total cost to buy a specific number of an item from player
#
Usageusing NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Merchant target, Inventory other) { int result = target.GetBuyFromPlayerTotal(other, other.items[0], 1); }
}