Skip to main content

MerchantWindowUI.BuyFromPlayer

Declaration#

public void BuyFromPlayer(GDTKItem item)

Parameters#

NameDescription
itemItem for transaction

Description#

Buy an item from the player

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(MerchantWindowUI target, GDTKItem other)    {        target.BuyFromPlayer(other);    }

}

Declaration#

public void BuyFromPlayer(GDTKItem item, Int32 count)

Parameters#

NameDescription
itemItem for transaction
countCount of item for transaction

Description#

Buy a certain count of an item from the player

Usage#

using NullSave.GDTK.Inventory;using UnityEngine;
public class Example : MonoBehaviour{
    public void ExampleMethod(MerchantWindowUI target, GDTKItem other)    {        target.BuyFromPlayer(other, 1);    }

}