Skip to main content

MerchantWindowUI.SellToPlayer

Declaration#

public void SellToPlayer(GDTKItem item)

Parameters#

NameDescription
itemItem for transaction

Description#

Sell an item to the player

Usage#

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

}

Declaration#

public void SellToPlayer(GDTKItem item, Int32 count)

Parameters#

NameDescription
itemItem for transaction
countCount of item for transaction

Description#

Sell a certain count of an item to the player

Usage#

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

}