Merchant.CanSellToPlayer
#
Declarationpublic bool CanSellToPlayer(Inventory playerInventory, GDTKItem item, Int32 count)
#
ParametersName | Description |
---|---|
playerInventory | Player's Inventory |
item | Item to sell |
count | Number of the item |
#
DescriptionChecks if a certain number of item can be sold to player
#
Usageusing NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(Merchant target, Inventory other) { bool result = target.CanSellToPlayer(other, other.items[0], 1); }
}